Git - Pushing code to two remotes
Git - Pushing code to two remotes
In recent versions of Git you can add multiple pushurls for a given remote. Use the following to add two pushurls to your origin:
git remote set-url --add --push origin git://original/repo.git
git remote set-url --add --push origin git://another/repo.git
So when you push to origin, it will push to both repositories.