VCS (git) checkout branch not syncing deployment
Answered
Hello,
I am using pycharm for remote development with a git repository. So far almost everything works great but I have one hiccup.
When I checkout or switch branches I need to manually sync with the remote (deployment) which is very tedious and error prone. According to the remote development man page (linked above), changes are supposed to be uploaded when you switch branches, however this is not happening. When I commit or push a branch there is an option to update the deployment remote, but no such option exists for checking out branches. If this option exists I cannot find it.
I am using PyCharm 2016.2.3
Please sign in to leave a comment.
Seems like it hasn't changed a bit through the last ~2,5 years.
Please go to Settings | Build, Execution, Deployment | Deployment | Options and uncheck Skip external changes. After that switching branches should trigger the upload.
Thanks, for the time being, seems working just fine. Will update you if I experience any malfunctionality.
Thanks @Sergey Karpos
I misinterpreted the help text provided with the option:
```Do not automatically upload files changed outside the editor (by VCS, scripts, tools)```
I was using pycharm to checkout a branch, and assumed I had never left the editor. This was false, as a checkout triggered inside pycharm is considered an outside editor operation.
May I suggest to update the help text?
@Gabriel Dernbach
I will notify the responsible team to consider updating the help string. Thanks for the suggestion.
I am using Pychar pro 2021.2.3 and see no option to force external changes to be uploaded to the remote machine. I find myself having to go manually over all the files, add a space and save to trigger the upload.
I am sure there is a smarter way, please point me toward it
Noam S Please make sure this option is disabled:
That was it, thanks!
I strongly suggest making it the default option, as it is highly unexpected behavior for any usage of git.
It makes using remote interpreter unintuitive accross my organization, and will force people to face this over and over.