Git放弃本地修改,强制拉取最新版 git fetch –all git reset –hard origin/master git fetch : 下载远程的库的内容(不做合并); git reset :指令把HEAD指向master最新版本。