Creating new Commits
suggest changeThe git commit
command does a few things:
- Create
blobs
andtrees
to represent your project directory - stored in.git/objects
- Creates a new
commit
object with your author information, commit message, and the roottree
from step 1 - also stored in.git/objects
- Updates the
HEAD
ref in.git/HEAD
to the hash of the newly-createdcommit
This results in a new snapshot of your project being added to git
that is connected to the previous state.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents