3 ms·
Committing git hooks to the repo is possible. These are the 2 ways in which they're commonly handled: 1. Link the scripts from the worktree to the .git/hooks d
by goku12 2y ago
Committing git hooks to the repo is possible. These are the 2 ways in which they're commonly handled:
1. Link the scripts from the worktree to the .git/hooks directory - perhaps using a bootstrap script.
Ref: https://codeinthehole.com/tips/tips-for-using-a-git-pre-commit-hook/ https://codeinthehole.com/tips/tips-for-using-a-git-pre-comm...
2. Declare the directory in the worktree to be the local git hooks directory.
Ref: https://knpw.rs/blog/direnv-git-hooks https://knpw.rs/blog/direnv-git-hooks