4

I want to execute script after run the commit command in git.

Sachin Kumaram
  • 900
  • 1
  • 10
  • 27
  • 2
    This previous SO answer contains a good sample: http://stackoverflow.com/questions/7633299/simple-git-post-commit-hook-to-copy-committed-files-to-a-certain-folder – DenizEng Feb 25 '16 at 10:47

1 Answers1

5

Now, I have got the answers, Using Git hooks that executes before or after events such as: commit, push, and receive. http://githooks.com/

Sachin Kumaram
  • 900
  • 1
  • 10
  • 27