Git Push to Two Repositories at the Same Time

2017-06-04 Beijing

Suppose You have 2 repositories:

You want to push to them within one command.

# if your project is cloned from this repository, 
# you can simply ignore this first command
git remote add origin
git remote set-url --add

Then if you want to push to both of them, just rum git push as normal.