git push multiple warehouse address

Recently developed an open source project, version management would like to do while on github and gitee.

Assuming you have to upload the project to github, specifically how to upload not repeat them here; even if you do not know this, you can look at it spicy my other articles about the entertainment gossip.
First, the implementation of projects in the console

git remote -v

View the current project of a remote warehouse at the following address: 

origin  https://gitee.com/yangpeng1838/vue-project.git (fetch)
origin  https://gitee.com/yangpeng1838/vue-project.git (push)

 So then you need to add to the project while github repository

git remote add github https://github.com/yangzong18/vue-project.git

Pushed to the remote repository:

 

git push -u github

The entry is also pushed to gitee warehouse

Subsequent code update time, to submit Emma, ​​and then use the following two commands are submitted to github and gitee

 

git push -u origin
git push -u github

Push all branches

git push --all github 

Published 29 original articles · won praise 5 · Views 7985

Guess you like

Origin blog.csdn.net/qq_25194685/article/details/104274369