Skip to content

negokaz/git-fancy-message-prefix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

English version

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

Japanese version

curl https://raw.githubusercontent.com/negokaz/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
}

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages