Skip to main content

Publish git to multiple remotes

This can be easily achieved by adding git remote push endpoints.

Eample :
git remote set-url origin --push --add <<repo1>>
git remote set-url origin --push --add <<repo2>>

now the below will push the code to two repositories in a single command
git push origin master

Comments