https://zhuanlan.zhihu.com/p/71163868
1、进入Git Bash
2、修改配置
#查看远程库信息
git remote -v
#删除origin这个远程库
git remote rm origin
#添加github的远程库地址
git remote add github 'https://github.com/axin1240101543/zookeeper-service.git
#添加gitee的远程库地址
git remote add gitee 'https://gitee.com/axin1240101543/zookeeper.git'
#查看远程库信息
git remote -v
3、提交代码到本地仓库
git add .
git commit -m "本次提交的代码备注"
4、提交代码到码云
#gitee:远程库命名 master:分支
git push gitee master
5、提交代码到github
#gitee:远程库命名 master:分支
git push github master
6、从gitee或github上拉取最新代码
#gitee:远程库命名 master:分支
git pull gitee master
git pull github master