michalrus / git-hooks-code-autoformat

Apache License 2.0
87 stars 24 forks source link

Only symlink pre-commit instead of whole hooks directory #17

Open vedelaar opened 6 years ago

vedelaar commented 6 years ago

I don't want to symlink my whole hooks directory. Instead, I want to symlink only the pre-commit script, so that I can add extra hooks locally without having untracked files or committing them.

Right now if I do git status, I have an untracked file: git-hooks/prepare-commit-msg which I don't want to commit (I don't want other developers using my prepare-commit-msg script). So if I am able to only symlink pre-commit I can have my own, local, scripts too.