What is Commits?
During the development process, developers commit whenever they reach a good point in their work. Commits are similar to drafts and refer to drafting code when ready to be triggered.
Commits are created with the git commit command to capture the status of a project at the time. Commits can be thought of as snapshots/milestones along the timeline of a Git project and git snapshots are always committed to the local repository.
The commit command captures a snapshot of the currently staged changes in the project. Committed snapshots can be thought of as a "secure" version of a project. Git will never change them unless you explicitly ask for them. Before the execution of a git commit, the git adds command is used to promote or 'stage' changes to the project that will be stored in a commit.