`git push` to multiple places at the same time

October 25, 2014

If you have a multi-server production setup, or something, you can do this kinda fancy trick with the git remote configurations to push to multiple remote urls at once.

Just edit the [remote "web"] section of your .git/config file to add more than one url target

[remote "web"]
url = ssh://server.example.org/home/ams/website.git
url = ssh://other.example.org/home/foo/website.git

Source: http://toroid.org/ams/git-website-howto