Skip to content

Instantly share code, notes, and snippets.

@nkrumm
Created April 15, 2020 18:43
Show Gist options
  • Save nkrumm/e534ea4fb5fa2a82166d6ad150cad87c to your computer and use it in GitHub Desktop.
Save nkrumm/e534ea4fb5fa2a82166d6ad150cad87c to your computer and use it in GitHub Desktop.
Add multiple git remotes
git remote add all git@gitlab.labmed.uw.edu:nkrumm/demux-nf.git
git remote set-url --add --push all git@gitlab.labmed.uw.edu:nkrumm/demux-nf.git
git remote set-url --add --push all https://github.com/nkrumm/demux-nf
git push -u all master
# now `git push` will update both remotes!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment