2

To commit my project update to both GitHub and BitBucket, I have to do:

git commit -am message
git push
git push alt

can I do both pushes in one command?

Sometimes I even have to push to more than two remote repos. Something like push all maybe?

exebook
  • 32,014
  • 33
  • 141
  • 226
  • 1
    If you're talking about multiple remotes, note that the conventional name for the default remote is `origin`, not `master` - which is the conventional name for the default *branch* – Gareth Feb 23 '15 at 08:45
  • 2
    Your write: *can I merge both pushes in one command?* Be careful with the term "merge"; it has a very precise meaning in Git. Do you mean "do both pushes in one command"? – jub0bs Feb 23 '15 at 08:46

0 Answers0