in Technology by (1.9m points)

 What are Hooks in Git?

1 Answer

0 votes
by (1.9m points)
Git hooks are certain scripts that Git runs before or after an event like commit, push, update or receive. You will find the ‘hooks’ folder inside .git directory in your local repository. You will find the build-in scripts here pre-commit, post-commit, pre-push, post push.

These scripts get executed locally before or after the occurrence of an event. You can also modify these scripts according to your needs and Git will execute the script when that particular event occurs.

Related questions

0 votes
0 votes
asked Nov 2, 2020 in Technology by JackTerrance (1.9m points)
0 votes
asked Nov 4, 2020 in Technology by JackTerrance (1.9m points)