Add multiple warehouse
method one
Note that the origin and gitee custom name of the remote repository, can not be repeated.
// 添加github
git remote add origin https://github.com/xxx(仓库地址)
// 添加gitee
git remote add gitee https://git.gitee.com/xxxx(仓库地址)
// 提交到github
git push origin
// 提交到gitee
git push gitee
// 从github更新
git pull origin master
// 从gitee更新
git pull gitee master
Method Two
Add a second gitee warehouse
git remote set-url --add gitee https://git.gitee.com/xxxx(仓库地址)
// 此时只需要一次push就能同步到多个远程仓库
git push
to sum up
Configuration 1 may select any warehouse pll, 2 arranged warehouse can pull missing default config codes from the first one of the url.