Intermediate Git Tutorial
What are Git hooks? Git hooks are shell scripts that trigger when you perform a specific action in Git.
Watch this intermediate Git tutorial video to see how you can incorporate Git hooks to automate checks as you move through your Git workflow. Learn how to set up a Git hook to prevent you from commiting the hook script detects a problem, like trailing white spaces.
After you initialize a Git repository, there will be a .git/hooks folder in your repo. Get tips for accessing the folder if it’s not immediately visible.