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.
- Host: GitHub
- URL: https://github.com/koirand/git-zoo
- Owner: koirand
- License: mit
- Created: 2019-04-01T17:07:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-19T15:59:15.000Z (over 5 years ago)
- Last Synced: 2025-04-23T03:59:30.546Z (7 months ago)
- Topics: cli, git, go, golang
- Language: Go
- Homepage:
- Size: 1.16 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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(+)
```