Skip to content

Instantly share code, notes, and snippets.

@johndodev
Created December 8, 2023 11:10
Show Gist options
  • Save johndodev/2dbfc4ef5524a7f230fb032e95438bff to your computer and use it in GitHub Desktop.
Save johndodev/2dbfc4ef5524a7f230fb032e95438bff to your computer and use it in GitHub Desktop.
Fichier qui installe le pre-commit
#!/bin/sh
cp ./bin/gitHook/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
echo "Pre-commit git hook installed (or updated)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment