Description:
- A commit is a snapshot of the code, only the changes
- A file is called a “blob” and it is a bunch of bytes
- Move the git HEAD to the new commit
git commit
- …
- [-F <file> | -m <msg>]
- Use the given <msg> as the commit message.
- If multiple
-moptions are given, their values are concatenated as separate paragraphs.
- If multiple
- Take the commit message from the given file. Use
-tto read the message from the standard input. - The
-moption is mutually exclusive with-c,-C, and-F.
- Use the given <msg> as the commit message.
- …