一 切换分支 二 将出去工作区的文件还原为最初始状态。 git checkout ' filename ', 可以和 git reset ' filename ' 搭配使用。 转载于:https://www.cnblogs.com/654321cc/p/9296839.html