Published on

Commit Message Prompt

My every day routine as a software engineer includes writing a lot of commits. I started using AI to generate commit messages, and the prompt I provide generates a valid result 99% of the time. I hope it can be useful for you as well ;)

$GIT_BRANCH_NAME

Short summary (72 chars or less, this is the subject of the commit message).

Write a commit message in the imperative way:
— Correct: "Fix bug"
— Not correct: "Fixed bug" or "Fixes bug"

This convention matches up with commit messages generated by commands like git merge and git revert.

Use Conventional Commits best practices.