删除本地所有为暂存的修改:
git checkout -f
如果有修改以及加入暂存区的话 那么 使用如下命令:
git reset --hard git clean -xdf
git删除本地所有的更改
原文:https://www.cnblogs.com/ryanzheng/p/8573155.html