Skip to content

Instantly share code, notes, and snippets.

View vkhv's full-sized avatar
☁️
Cloud development

Vladislav Khvostov vkhv

☁️
Cloud development
  • Cloud
View GitHub Profile
@vkhv
vkhv / prepare-commit-msg
Last active July 13, 2017 16:01 — forked from jasonmerino/prepare-commit-msg
Prepend branch name to every git commit message unless on master. This fork aimed to git flow and discard keyword feature.
#!/bin/sh
#
# Prepend the branch name to the commit message
#
# Add this file as [repo]/.git/hooks/prepare-commit-msg
#
# A couple notes:
# 1. The file must be executable (chmod +x prepare-commit-msg)
# 2. This works on a per-repo basis (unless you follow this guide https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook)