git如何删除本地所有未提交的更改 stash很好用,至少不会影响 .gitignore 里面的不跟踪的文件: git add . && git stash && git stash drop ======END=====