Skip to content

Instantly share code, notes, and snippets.

@donovanr
donovanr / push_to_two_repos.txt
Created July 1, 2015 15:37
how to push to two git repositories at once, ie github and gitlab
# how to push to two remotes at once by adding a repo called 'all':
git clone git://original/repo.git
git remote add all git://original/repo.git
git remote set-url --add --push all git://another/repo.git
git remote set-url --add --push all git://original/repo.git
# git remote -v should list two push repos for 'all'