Git push to multiple remote warehouse

Ready to work

In the code cloud and Github on two new respectively do not include any document empty warehouse

Create a new article in the local folder, perform in the folder directory:

git init

Then execute

git remote add origin https://gitee.com/greyzeng/article.git
git remote set-url --add origin https://github.com/GreyZeng/article.git

have a test

Add a file in the local repository article folder readme.txt, followed by execution

git add * 
git commit -m "add readme.txt"
git push -u origin master

To the readme.txtpush github gitee and two warehouses.

Guess you like

Origin www.cnblogs.com/greyzeng/p/11620839.html