Reputation: 6181
Is it pssobile to run a git hook after adding a file? For example, after running:
git add someFile.php
a script would be triggered.
Upvotes: 1
Views: 56
Reputation: 27282
git help hooks
Will show you all the currently available hooks. As of Git 1.7, there is no hook that's invoked when you add a file, so I'm afraid the answer to your question is "no."
Upvotes: 2