git pull时出现冲突 放弃本地修改,使远程库内容强制覆盖本地代码

git fetch --all   //只是下载代码到本地,不进行合并操作

git reset --hard origin/master   //把HEAD指向最新下载的版本

https://blog.csdn.net/mxlwd168/article/details/76131266

原文地址:https://www.cnblogs.com/ycqi/p/10942497.html