Add multiple urls to a git remote
Push to both Github and Bitbucket with the one push command by adding multiple urls to the one remote:
git config --add remote.origin.url git@host.com:user/repo.git
List all of your remotes and their URLs using:
git remote -v
Written by Tim Heap
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#