想要拉远端强制覆盖本地,试过git pull --force ,还是会提示需要commit 下面的方法可以强制覆盖,留着以免忘记 git fetch --all git reset --hard origin/master git pull