Skip to content
zero2vibecodelearn vibe coding

What git commit -m does

Save a snapshot of your changes with a message.

gitcommit-mfirst commit
  • gitcommand — track changes to your project and share them
  • commitargument: a file, a folder, or text
  • -mflag (a command option)
  • first commitargument: a file, a folder, or text

What it does when you run it

$ git commit -m "first commit"
[main 0a1b2c3] first commit

Run it yourself

The same files. Nothing here can break, and nothing leaves your browser.

Explain other commands

Written by Mikhail Kuzmitskii