Sunday, July 10, 2011

Git - How to push to multiple remotes

A neat way to push to multiple remotes. This would allow you to push to 'all' remotes

git push all HEAD:<branch>

 
This is especially useful when you use dropbox as an additional remote. Edit the .git/config in the local repo and add the following
[remote "all"]
    url = <git-url-1>
    url = <git-url-2>
    url = <git-url-3>