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
相關文章
相關標籤/搜索