/git-zoo

Adds random animal emoji to git commit message.

Primary LanguageGoMIT LicenseMIT

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(+)