Remotes
Adding remotes is straightforward; you have to use the command line or make a file for your respective VCS systems. This is currently a feature request in YouTrack, so it will be worked on at some point. However, PyCharm understands remotes, so if we add a GitHub remote from Git (git remote add origin git@github.com:gamesbrainiac/TestProject.git
), PyCharm would understand that we've added a remote when we go to commit and push:
We can add multiple remotes via the command line, and PyCharm will allow us to pick which one we want to push. Make sure to check the Push current branch to alternative branch checkbox, or else PyCharm will tell us that there's nothing to push.
However, all of this is done for us by the built-in GitHub plugin in PyCharm if we click on Share Project on GitHub:
If you're a Bitbucket user, you may also choose to use its plugin, which gives you similar functionality:
Be warned though; this plugin has not been updated for quite some time, and has a few quirks. The...