Git Commit Message Generator

Get random commit messages for your git commits

Random Commit Message

Click the button to generate a random commit message from our collection.

CLI Usage

You can use this API directly from your terminal:

Get a random commit message:

curl -q -LSsf http://api.casjay.coffee/api/v1/tools/commit/text

Create a git alias:

git config --global alias.random-commit '!f() { git commit -m "$(curl -q -LSsf http://api.casjay.coffee/api/v1/tools/commit/text)"; }; f'

Then use: git random-commit

Bash function:

commit_random() {
    git commit -m "$(curl -q -LSsf http://api.casjay.coffee/api/v1/tools/commit/text)" "$@"
}

Add to your ~/.bashrc or ~/.zshrc