Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.17 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.17 KB

Git Fancy Message Prefix

A Git prepare-commit-msg hook for fancy commit message

Inspired by:

Feature

Add an emoji to prefix of commit message automatically

Commit message template

Install

Run following command in your git working directory

bash/zsh/fish

Japanese version

curl https://raw.githubusercontent.com/WELLMAX357/git-fancy-message-prefix/master/prepare-commit-msg.ja -o .git/hooks/prepare-commit-msg && chmod +x .git/hooks/prepare-commit-msg

Customize

You can add original prefix and emoji by adding an entry to templates function.

# .git/hooks/prepare-commit-msg

function templates {
# format:
#
#   prefix:   emoji(code)   description
#
# Full Emoji List: https://unicode.org/emoji/charts/full-emoji-list.html
cat <<EOF
fizz:     \U1f600   This is an original prefix
feat:     \U2728    A new feature
fix:      \U1f41e   A bug fix
...
EOF
}