飞跃世纪末

导航

Git问题总结

1 git push origin master 提示Everything up-to-date

表示本地仓库和远程仓库是一致的,没有更新,需要检查自己的提交。

2 git push origin master提示error: failed to push some refs to.....

hint: Updates were rejected because the remote contains work that you do
hint: not have locally.

表示远程仓库有的本地没有,需要先把远程仓库同步到本地,之后再执行提交。

先执行:

git pull origin master

后执行:

git push origin master

posted on 2018-07-18 10:36  小萝卜的烤兔店  阅读(110)  评论(0编辑  收藏  举报