增加了几个文件, 没有 add, 不想保存文件, 怎么快速清除文件?
增加了 add 了文件, 不想保存文件, 怎样清理?
修改了文件, 没有 add, 怎样清理?
修改了文件, 已经 add, 怎样清理?
git clean -f ( -d if you have new directory )git reset --hard ( or git reset then back to 1. )git checkout . ( or specify with file names )git reset --hard ( or git reset then back to 3. )原文:http://www.cnblogs.com/hellowego/p/6560423.html