Random Commit Message

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

API commands for this page

Run these examples from a terminal. Replace sample values and add your bearer token where required.

Generate a commit message

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

Generate a batch

curl -q -LSsf 'https://api.casjay.coffee/api/v1/tools/commit/batch/10'

Create a Git alias, then run git random-commit

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

Define this Bash function in your shell

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