I have a project on remote server and created phpstorm project by copying all files from mounted directory.
'.git' directory was not downloaded and I have it on remote server.
In 'Project Settings -> Version control' I set path to git direcotry.
But switching branches and any git operation works very slow.. Connection is fine and for me is much faster to manually go to console, do some git operations and sync all project :-)