0 votes
11 views

 What are Hooks in Git?

in Technology by (191k points)

1 Answer

0 votes
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.
by (191k points)

Related questions

0 votes
1 answer 32 views
0 votes
1 answer 33 views
0 votes
1 answer 21 views
0 votes
1 answer 11 views
11 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 15 views
15 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 20 views
20 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 23 views
0 votes
1 answer 22 views
0 votes
1 answer 32 views
32 views asked Jan 8 in Technology by JackTerrance (191k points)
0 votes
1 answer 37 views
37 views asked Jan 8 in Technology by JackTerrance (191k points)
0 votes
1 answer 23 views
0 votes
1 answer 23 views
23 views asked Jan 7 in Technology by JackTerrance (191k points)
0 votes
1 answer 34 views
0 votes
1 answer 18 views
18 views asked Jan 7 in Technology by JackTerrance (191k points)
0 votes
1 answer 22 views
0 votes
1 answer 17 views
17 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 21 views
0 votes
1 answer 67 views
67 views asked Dec 10, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 30 views
0 votes
1 answer 22 views
0 votes
1 answer 16 views
16 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 12 views
12 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 28 views
28 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
...