0 votes
in Git by

What are Hooks in Git?

1 Answer

0 votes
by

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 Aug 24, 2023 in Git by JackTerrance
0 votes
asked Aug 22, 2023 in Git by JackTerrance
...