Creating new Commits
suggest changeThe git commit command does a few things:
- Create
blobsandtreesto represent your project directory - stored in.git/objects - Creates a new
commitobject with your author information, commit message, and the roottreefrom step 1 - also stored in.git/objects - Updates the
HEADref in.git/HEADto 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