Created
June 10, 2020 22:41
-
-
Save stilliard/922f36fe5240908db91a18cb7716fed0 to your computer and use it in GitHub Desktop.
git semantic commit aliases (like http://karma-runner.github.io/5.0/dev/git-commit-msg.html or https://www.conventionalcommits.org/)
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
semantic-commit = "!f() { \ | |
if [ \"$3\" != \"\" ]; then \ | |
git commit -S -m \"$1($2): $3\"; \ | |
else \ | |
git commit -S -m \"$1: $2\"; \ | |
fi \ | |
}; f" | |
chore = semantic-commit chore | |
docs = semantic-commit docs | |
feat = semantic-commit feat | |
fix = semantic-commit fix | |
refactor = semantic-commit refactor | |
style = semantic-commit style | |
test = semantic-commit test | |
wip = semantic-commit wip | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment