Git放弃本地所有修改,强制更新 git fetch --all git reset --hard origin/master 放弃修改:git clean -df 转载于:https://www.cnblogs.com/blueridge/p/9894864.html