Skip to content

Instantly share code, notes, and snippets.

@kinoute
Last active August 16, 2019 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinoute/8df5e8c5e1238067d027cca69b4bcbce to your computer and use it in GitHub Desktop.
Save kinoute/8df5e8c5e1238067d027cca69b4bcbce to your computer and use it in GitHub Desktop.
Push to remote Github and Gitlab at the same time
# https://git-scm.com/docs/git-remote#Documentation/git-remote.txt-emset-urlem
git remote set-url --add --push origin git@github.com:Foo/bar.git
git remote set-url --add --push origin git@gitlab.com:Foo/bar.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment