本地开发错误,或者不想要的时候,可执行以下步骤,强制拉取远程仓库没有修改的文件覆盖本地更改的文件: git fetch --all git reset --hard origin/master git pull