I use external disc to store my projects and work with at work and at home.
And use automatic upload to server for files.
In Deployment options i set checkbox "upload external changes" - to upload file to server, when i change branch in git.
Trouble: i change file at work. uploaded them. Then come home i continue to work and on first upload phpstorm automaticly uploads all changes, that was made at work and already uploaded.