What does git commit -m ‘message’ do?

Git Easy

Git — Easy

What does git commit -m ‘message’ do?

Key points

  • The -m option specifies the commit message.
  • Staged changes are recorded as a new commit.
  • The commit is created locally, not remotely.
  • A meaningful message helps with tracking changes.

Ready to go further?

Related questions