Last active
March 5, 2018 21:52
-
-
Save hotpxl/7623952 to your computer and use it in GitHub Desktop.
Prepare commit message for Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
branch=$(git symbolic-ref HEAD | sed -e "s#refs/heads/##") | |
sed -i.sed '1 i \ | |
'"[${branch}] " "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment