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 [email protected]:gamesbrainiac/TestProject.git), PyCharm would understand that we've added a remote when we go to commit and push:

Remotes

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:

Remotes

If you're a Bitbucket user, you may also choose to use its plugin, which gives you similar functionality:

Remotes

Be warned though; this plugin has not been updated for quite some time, and has a few quirks. The orange arrow in the second last screenshot is pointing to the action for sharing on Bitbucket.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.181.231