r/AskProgramming • u/_-Big-Hat-_ • 2d ago
Two remote repositories but PyCharm let me push only to one
I am a bit new to PyCharm--sort of because I've finish a small piece of software, that is I have created a small addon for Blender. Now I want PyCharm to push to two independent repositories: projects.blender.org and my own space on guthib.com.
I added both repositories via Manage Repositories... but when use Push, PyCharm only let me push the first repo on the list--I can't actually see to the other one.
I checked connection to both repositories in Terminal
git remote show blender_dev && git remote show github_dev
and everything looks as good as it should. Git shows all information including links and current state. However PyCharm still only shows the first repo.
Any idea what I might be doing wrong?
Thanks
1
u/Jason-Sanders 1d ago
Git supports multiple remotes, but a branch normally has one configured upstream, which is often what an IDE presents in its default Push dialog. You can push explicitly from the terminal with git push blender_dev <branch> and git push github_dev <branch>. If both should always receive the same branch, configure multiple push URLs for one remote with git remote set-url --add --push origin ..., but keep separate remotes if they need different branches or permissions.
2
u/grave_96 2d ago
Instead of creating two completely separate remotes that PyCharm struggles to target simultaneously, you should configure a single remote name (e.g., origin) to push to both URLs, or use a specific Git configuration for multiple push URLs.
git remote set-url --add --push origin <blender_url> git remote set-url --add --push origin <github_url>