Git Commit
Learn how to create your first snapshot with the git commit command.
We'll cover the following
The git commit
command
Once we have a local repository that is tracking our project, we will move towards creating our very first commit.
A commit is a snapshot of the entire state that your project is in at that moment. Git keeps track of your project through a series, or chain, of commits. The most recent snapshot of your repository is referred to as the HEAD.
As soon as you create a new commit, it will directly link to the HEAD. However, since the latest commit is now the most recent one, it will be considered the HEAD instead, replacing the previous one.
Get hands-on with 1200+ tech skills courses.