Last active
March 5, 2020 18:19
-
-
Save emjayoh/747c0caf2a066e76556fc8924962b433 to your computer and use it in GitHub Desktop.
Update lolcommits to work with all repos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create a template dir for hooks (if you don't already have one) | |
| mkdir -p ~/.git_template/hooks | |
| # tell git to use this template dir (globally) | |
| git config --global init.templatedir '~/.git_template' | |
| # copy the post-commit hook from any existing lolcommits enabled repo | |
| cp [path/to/lolcommit-enabled-repo]/.git/hooks/post-commit ~/.git_template/hooks/ | |
| # navigate to all existing local repos on your machine and run | |
| git init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment