git reset --hard HEAD 回到上一次提交的状态 git clean -df 清空未跟踪的文件夹和文件 git pull 获取最新 转载于:https://www.cnblogs.com/gduf/p/10458115.html