Link to this headingGit

https://ohshitgit.com/

Link to this headingHooks

https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
https://githooks.com/

Client-Side Hooks:

  • pre-commit:
  • prepare-commit-msg:
  • commit-msg

Link to this headingPre-Commits

Pre Commit Hook:

cat > .git/hooks/pre-commit<< EOF #!/bin/sh if git grep --cached -q 'TODO'; then echo 'Your commit contains TODO comments. Resolve them before committing.' exit 1 fi EOF chmod +x .git/hooks/pre-commit

Link to this headingPer Repo Configs

https://www.benji.dog/articles/git-config/

Link to this headingBetter Patch

Delta: