Skip to content

Instantly share code, notes, and snippets.

View mstroiu's full-sized avatar
🏠
Working from home

Marian Stroiu mstroiu

🏠
Working from home
View GitHub Profile
@mstroiu
mstroiu / prepare-commit-msg.sh
Created February 23, 2022 07:13 — forked from nivrith/prepare-commit-msg.sh
prepare-commit-message.sh
#!/bin/bash
#
# Inspects branch name and checks if it contains a Jira ticket number (i.e. ABC-123).
# If yes, commit message will be automatically prepended with [ABC-123].
#
# Useful for looking through git history and relating a commit or group of commits
# back to a user story.
#