git commit command does a few things:
treesto represent your project directory - stored in
commitobject with your author information, commit message, and the root
treefrom step 1 - also stored in
.git/HEADto the hash of the newly-created
This results in a new snapshot of your project being added to
git that is connected to the previous state.