Search⌘ K
AI Features

Git Commit

Explore how to create your first Git commit to capture a snapshot of your project. Understand the importance of descriptive commit messages and how Git tracks your project's history through commits.

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 ...