I have a PhpStorm project linked to a remote server (a VM) where I set automatic deployment, so each time I modify and save a file, it is uploaded automatically to this server. Now I want to use GIT on this project. My workflow should be the following : - Work on local copy - Saving and automatic upload to the development server - Test (open webpage on dev server) - if ok, commit from local copy. Then push, etc...
My question is : how to work with branches ? I mean, I know that when switching branch, the directory I work on can completely change. Example : my branch A contains a.html. My branch B only contains b.html If I switch branch locally, the content of my folder will change. Will PhpStorm will add/delete a.html/b.html on my deployment server each time I switch branch ? Obviously, it's not what I want. How these changes will be reflected on the deployment server, how PhpStorm manage it ? Thank you for your help
Tools | Deployment | Sync with Deployed.... In any case: there are few settings for automatic deployment inSettings | Deployment | Options(AFAIK the VCS operations are considered "external activities" so you should check that option). - LazyOne