Your branch is ahead of 'origin/master' by 1 commit

如果当你写完代码准备提交时候,提示Your branch is ahead of 'origin/master' by 1 commit, 说明 你本地仓库和远端仓库信息不一致。 别急,这时候只需要同步到master分支内容和本地提交内容一致就okl 将更改后的代码备份(因为同步过程中master 远端分支的提交旧于当前本地提交,会以远端提交为主) 然后执行: git reset --hard o
相关文章
相关标签/搜索