Skip to content

Instantly share code, notes, and snippets.

View abhay-work's full-sized avatar

Abhay Vaidya abhay-work

View GitHub Profile
@abhay-work
abhay-work / Instructions.md
Last active July 4, 2018 17:41 — forked from pgilad/Instructions.md
Git commit-msg hook to validate for Jira issue (FS-XXX) at the beginning of every commit

Setup

cd <your-git-repo>

curl https://gist.github.com/abhay-work/9fa2895f081f208990bcc2e0aabf59d2/raw/1bb266b327742efc27eb2fb736b8befa1f2aa645/commit-msg.sh > .git/hooks/commit-msg

rm .git/hooks/commit-msg.sample

chmod +x .git/hooks/commit-msg