Command

Git Commit with Message Command

The Git command to commit with message is git commit -m "message".

Quick Answer

Command
git commit -m "message"
GitCommand

Commit with Message

Type this command
git commit -m "message"

Records staged changes with a message.

Learn More

How to commit with message in Git

  1. Open the terminal or command interface for Git.
  2. Type git commit -m "message", replace any placeholders, and run it.

Git Commit with Message Command

Run git commit -m "message".

Related Commands

Frequently asked questions

What is the Git command to commit with message?

Run git commit -m "message".

Where do I type this Git command?

Type it in the terminal or command-line interface used by Git.

Does this Git command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify