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