一、切换数据源
git remote -v git remote remove origin git remote add origin http://git.egov-china.com/zhangkaichao/ApiAccept.git git remote add upstream http://git.egov-china.com/ApiJava/ApiAccept
二、首次推送失败
git pull origin master –allow-unrelated-histories git push -u origin master -f
三、常用命令
git init git add . git commit -m "first commit" git config --global user.email "abcde@qq.com" git commit -m "first commit" git remote add origin https://自己的仓库url地址, git push -u origin master