Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上,我想编写一个预提交挂钩来检查即将提交的更改(重新)移动文件而不使用git rm/ git mv。
git rm
git mv
我不知道如何处理这个问题。
您可以使用git commit --dry-run和检查输出。
git commit --dry-run