天天看點

git pull發現有ahead of xx commits問題如何解決

git pull 的時候發現有提示你ahead of xx commits 這個時候怎麼辦呢?

直接一句話定位到遠端最新分支

git reset --hard origin/分支名稱      
git