1、如果 执行了 git add . 发现文件提交错误 使用 git restore --staged 撤销暂缓区的提交的文件
git restore --staged
2、本地修改了 但是改错了 或者 不想要本地的修改
git checkout .