Skip to content

Instantly share code, notes, and snippets.

@MohammedEsafi
Last active March 14, 2025 10:08
Show Gist options
  • Select an option

  • Save MohammedEsafi/f717b8bd92a96c42179c3f731bdd9007 to your computer and use it in GitHub Desktop.

Select an option

Save MohammedEsafi/f717b8bd92a96c42179c3f731bdd9007 to your computer and use it in GitHub Desktop.
A concise guide to toggling Git hooks on and off by modifying the core.hooksPath configuration

Toggle Git Hooks activation and deactivation using these commands.

  • Disable git hooks
git config core.hooksPath no-hooks
  • Re-enable git hooks
git config --unset core.hooksPath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment