Introduction
When you work with files in a project, you need a way to track changes safely. Git uses three areas to help you manage your work: the working directory, the staging area, and the repository. This setup helps you control what changes are saved and shared.
When you want to edit files but only save some changes permanently.
When you want to review your changes before saving them.
When you want to keep a history of your project versions.
When you want to undo changes before saving them.
When you want to share your saved changes with others.