Ryre
Ryre

Reputation: 6181

Is it possible to run a Git hook after adding a file to a project?

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

Answers (1)

Ethan Brown
Ethan Brown

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

Related Questions