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.
.git config like this:
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