git push出现的错误 failed to push some refs to ...的解决
出现问题
git 版本库发生了改变,并没有更新到本地,提交Commit的时候远程库和本地库发生了冲突。在push的时候出现了这样的错误:error:failed to push some refs to。
解决方案
因为远程版本库与本地库不一致导致的冲突,则需要把远程库同步到本地库。下面是命令
git pull --rebase origin master
这条指令的意思是把远程库中...
原创
2018-08-27 12:14:16 ·
2187 阅读 ·
0 评论