How to remove remote git hooks?

I think it's better to keep all *.sample in .git/hooks

To remove git hooks who come husky :

  • First, go to hooks directory
cd .git/hooks
  • Secondly, keep all *.sample files and remove others
ls | grep \.sample -v | xargs rm

Assuming you have no non-husky hooks, you might want to keep:

rm -f .git/hooks/*

every file inside ".git/hooks/" is either a git-hook or ignored by git. By removing everything inside, you'll get rid of all hooks, and restore the default behavior.

By default there are example-hooks in there, but except for being examples they serve no purpose, so you can delete them.