Additional Information on Hooks
Learn if hooks are part of Git content, and learn about “pre-receive” hooks.
We'll cover the following
Are hooks part of Git content?
A question you may be asking yourself at this point is whether the hooks are part of the code or not. You wouldn’t have seen any mention of the hooks in your commits; so does it move with the repository as you commit and push or not?
An easy way to check is to look at the remote bare repository directly.
1 cd ../git_origin
2 ls hooks
Get hands-on with 1400+ tech skills courses.