Skip to content

Adds random animal emoji to git commit message.

License

Notifications You must be signed in to change notification settings

koirand/git-zoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-zoo

🐶🐱🐭🐹🐰🦊🐻🐼🐨🐯🦁🐮🐷🐸🐵

This tool adds random animal emoji to git commit message. Let's make commit log a zoo.

Feature

  • Supports both git commit and git commit -m commands.
  • It works also with IDEs such as VSCode and Atom.

Install

Download the binary from the Releases page.

Or Install with go get command.

$ go get github.com/koirand/git-zoo

Usage

Execute git zoo command on your git repository. It will create a git hook symbolic link in .git/hooks/prepare-commit-msg. When you commit, you see that the commit message is automatically edited.

If you have already created git hooks, you can add the command as follows:

#!/bin/sh

...

git zoo $1

To disable git hook, unlink symbolic link.

unlink .git/hooks/prepare-commit-msg

Git log example

$ echo "foo" >> README.md
$ git add --all
$ git commit -m "first commit"
[master (root-commit) f543f06] 🦁 first commit
 1 file changed, 1 insertion(+)
 create mode 100644 README.md

$ echo "bar" >> README.md
$ git commit -am "second commit"
[master e89092b] 🐸 second commit
 1 file changed, 1 insertion(+)

$ echo "baz" >> README.md
$ git commit -am "third commit"
[master ccbcd8a] 🐮 third commit
 1 file changed, 1 insertion(+)

About

Adds random animal emoji to git commit message.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages