Introduction
When you make changes to files in a project, you need to save those changes in a history log. The git commit command saves your changes with a short note explaining what you did. This helps you and others understand the history of the project.
After editing files and you want to save a snapshot of your work.
When you want to add a clear explanation of what changes you made.
Before sharing your work with others or pushing to a shared repository.
To keep track of progress in small, understandable steps.
When you want to be able to go back to a previous version if needed.