Skip to content

Instantly share code, notes, and snippets.

View jarofghosts's full-sized avatar

jesse keane jarofghosts

View GitHub Profile
@jarofghosts
jarofghosts / commit-msg
Last active December 25, 2015 15:39 — forked from hayes/commit-msg
#!/bin/sh
#
# Simply prepends the branch name to every commit message
branch=$(git rev-parse --abbrev-ref HEAD)
if [ $branch != 'master' ] && [ $branch != 'HEAD' ]; then
echo "[$branch] `cat $1`" > $1
fi