Set git to push gitee and github at the same time

View the current remote warehouse settings:

git remote -v

This will list your currently configured remotes. You may see output similar to the following:
origin-gitee <gitee repository address> (fetch)
origin-gitee <gitee repository address> (push)

Add a new remote warehouse

 git remote add origin-github <github warehouse address>

Push to different warehouses respectively

git push origin master
git push origin-github master

Guess you like

Origin blog.csdn.net/taoshihan/article/details/132034073