'Manage Remotes' problem in PhpStorm for Git


I want to use manage remotes to share my project on Bitbucket and GitHub. But there is a problem. When I add a git link of GitHub to manage remotes section, and then when I click push, GitHub seems but Bitbucket doesn’t seem. Screenshots are below.

enter image description here

enter image description here

.git config like this:

enter image description here

If I write Bitbucket to remote in branch section and push again, this time it pushes to Bitbucket. But I want to push both at one time. Thanks for answers.


Unfortunately, PhpStorm doesn’t support pushes to multiple remotes.
As a workaround you could set in your config "pushUrl" like this:

[remote "github"]
    url = <url1>
    pushUrl = <url1>
    pushUrl = <url2>

Or as mentioned in comments, use the following commands:

git remote set-url --add --push origin git://original/repo.git
git remote set-url --add --push origin git://another/repo.git

Answered By – Rodj

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published