Skip to content

Instantly share code, notes, and snippets.

View figadore's full-sized avatar
loading...

Reese figadore

loading...
  • Portland, OR
View GitHub Profile
@figadore
figadore / commit-msg
Last active April 23, 2020 18:05 — forked from aradi/git-commit-msg-hook
Git commit message hook
#!/bin/bash
# adapted from http://addamhardy.com/2013/06/05/good-commit-messages-and-enforcing-them-with-git-hooks.html
################################################################################
# Store this file at ~/.git-hooks-global/commit-msg. You may need to make the
# script executable with 'chmod +x .git-hooks-global/commit-msg'. Finally, run
# 'git config --global core.hooksPath ~/.git-hooks-global/'
################################################################################
exec < /dev/tty
~/.git-hooks-global/validate-msg.py $1