Write a git commit Message

Learn the best practices to write a message in the git commit command.

We need a message for every commit. When we commit with git commit -m "One line message here", we create the commit with a one-line remark.

Execution of the git commit command

In the example below, see the result of the git status command before and after the git commit -m "message" command. It shows the changes to be committed in the former case and nothing to commit status in the latter case.

Get hands-on with 1200+ tech skills courses.