执行这两句话: git fetch --all //从远程仓库下载最新的代码,不会自动合并到本地分支上 git reset --hard origin/branch_name //强制复位本地分支,和远程分支保持一致