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

原文地址:https://www.cnblogs.com/ww11/p/9327788.html