Skip to content

Instantly share code, notes, and snippets.

@emjayoh
Last active March 5, 2020 18:19
Show Gist options
  • Save emjayoh/747c0caf2a066e76556fc8924962b433 to your computer and use it in GitHub Desktop.
Save emjayoh/747c0caf2a066e76556fc8924962b433 to your computer and use it in GitHub Desktop.
Update lolcommits to work with all repos
# 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