git放弃修改,强制覆盖本地代码

$ git fetch --all

$ git reset --hard origin/master

$ git pull

原文地址:https://www.cnblogs.com/aaron-agu/p/9212153.html