git 放弃本地修改,强制拉取更新

1,542 阅读1分钟
git fetch --all #指令是下载远程仓库最新内容,不做合并
git reset --hard origin/master #指令把HEAD指向master最新版本
git pull //可以省略