git fetch –-all
git reset –-hard origin/master

git fetch : 下载远程的库的内容(不做合并);

git reset :指令把HEAD指向master最新版本。

相关文章: