Skip to content

Instantly share code, notes, and snippets.

@stilliard
Created June 10, 2020 22:41
Show Gist options
  • Save stilliard/922f36fe5240908db91a18cb7716fed0 to your computer and use it in GitHub Desktop.
Save stilliard/922f36fe5240908db91a18cb7716fed0 to your computer and use it in GitHub Desktop.
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