Skip to content

Instantly share code, notes, and snippets.

Mike de Vrind mikevrind

View GitHub Profile
bartoszmajsak /
Last active Jul 1, 2020
How to automatically prepend git commit with a branch name
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
BRANCH_NAME=$(git symbolic-ref --short HEAD)
You can’t perform that action at this time.