I've had a look around and can't seem to find an answer to this particular conundrum (which would make sense otherwise I wouldn't be here asking about it!) or at least if there has been one I haven't understood it.
I've created a project in PhpStorm, "Web server is on remote host, files are accessible by FTP/SFTP/FTPS", and I've been making changes to that with no problem. The structure of this project is as follows:
\Project Root
\
\ Subfolder A
\ Contents A
\
\ Site
\ Site stuff
\
\ Subfolder B
\ Contents B
Now, I've got this like that because although the main files I'm working on are in Site, I occasionally need to tweak some stuff in the other subfolders.
Saving the project uploads the files without problem.
The thing I'm now having a problem with is that Site is under version control on the server using Git. I can log on to the server and do some Git stuff there (although I'm not too familiar with Git) but when I try to pull some changes that have been committed to the repo (that's upstream, yeah?) there is a merge conflict. Because I'm so new at this, I'd rather not try to resolve the conflicts through the command line using vimdiff.
Is there a way I can set up Git through PhpStorm to only act on that specific folder, pulling the changes from the remote repo (hosted on another server from this project), merging and resolving conflicts within PhpStorm, and then uploading the files in such a way that on the server the project shows as up to date with the current branch?
I've thought about grabbing the .git directory from the server via SFTP and plonking that in the Site folder like it is up there but I'm not sure that would work. I would also think PhpStorm has a good reason for not doing this in the first place.
EDIT: For a bit of clarification, Site is dirty. I don't want to commit those changes until I'm happy with them but I still need them to be there for now. I tried stashing, pulling, then applying but that's when I get the merge conflict error, and I want to resolve these conflicts within PhpStorm.
Sitefolder is the only thing under version control, then only this folder would be managed by Git. You don't need to worry about other files/folders commingling with your VCS process. - Tim BiegeleisenSiteis actually under VCS on the server and know where the repo is to pull the changes so I can merge and resolve the conflicts within PhpStorm itself. If that makes any sense :P - Sera H