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 钩子是 pssobile 吗?例如,运行后:
git add someFile.php
将触发一个脚本。
git help hooks
将向您展示所有当前可用的钩子。从 Git 1.7 开始,添加文件时不会调用任何钩子,所以恐怕您的问题的答案是“否”。