Skip to content

Instantly share code, notes, and snippets.

View hoektoe's full-sized avatar

Martin Smit hoektoe

View GitHub Profile
@hoektoe
hoektoe / prepare-commit-msg.sh
Last active November 28, 2018 06:28 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# Create branch name with JIRA code in this format ABC-123
# JIRA code needs to be in capitals divided by - and followed by numerals
# Branch example: css_minified_ABC-123 or ABC-123_css_minified
# Use github desktop or $ git commit -m "Recompiled css into minified version"
# this will result with commit "[ABC-123] Recompiled css into minified version"
# Installation