git 中删除没有被追踪的文件
id: 01K5RR9NFREBCCRT4YHNN94W29
在 git config 中创建一个 alias, macOS 下位置在 ~/.gitconfig
[alias]
nah = "!f(){ git reset --hard; git clean -xdf; if [ -d ".git/rebase-apply" ] || [ -d ".git/rebase-merge" ]; then git rebase --abort; fi; }; f"
然后后续的使用可以运行 git nah 即可