git fetch --all //只是下载代码到本地,不进行合并操作 git reset --hard origin/分支名如master //把HEAD指向最新下载的版本 git pull //可以省略