What git commit -m does
git commit -m "first commit": Save a snapshot of your changes with a message.
The git command page covers what it does in general, with an example.
gitcommit-mfirst commit
git— command — track changes to your project and share themcommit— subcommand — save the staged changes as a snapshot-m— flag — give the commit message right here instead of opening an editorfirst commit— the commit message
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