git删除本地所有的更改

 删除本地所有为暂存的修改: 

git checkout -f

 

如果有修改以及加入暂存区的话 
那么 使用如下命令:

git reset --hard

git clean -xdf