I'm working on a project where the "working environment" is remote and I can connect to it using SSH or Samba. So I usually need to change the remote files and test. I was able to set a PHPstorm project by accessing the files via SFTP. Whenever I update a local file, it gets uploaded automatically, so it is ok.
The sources also stay in a git repository, so I have a clone on my local machine, connected to the local copy of the remote files.
When I change the branch locally (using external GIT software), the local files change correctly, but the remote files are not automatically updated. This makes the remote copy inconsistent and I can't test my changes in the remote "working environment".
If I try to access the remote files using Samba and edit them directly, I'm afraid it gets very slow and I can't use the git software any more (but the command line).
Can you please advice a better setup for the whole developing process?