An open API service indexing awesome lists of open source software.

https://github.com/koirand/git-zoo

Adds random animal emoji to git commit message.
https://github.com/koirand/git-zoo

cli git go golang

Last synced: 7 months ago
JSON representation

Adds random animal emoji to git commit message.

Awesome Lists containing this project

README

          

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](https://github.com/koirand/git-zoo/releases).

Or Install with `go get` command.

```bash
$ 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

```bash
$ 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(+)
```