命令: git fetch --all git reset --hard origin/master git fetch 指令是下载远程仓库最新内容,不做合并 git reset 指令把HEAD指向master最新版本