Skip to content

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

License

Notifications You must be signed in to change notification settings

WELLMAX357/git-fancy-message-prefix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 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

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
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%