Understand Git's three operational areas
Git manages files across three primary local areas and one remote area to track changes and maintain version history:
- Working Directory: The actual directory on your local machine where you edit files.
- Staging Area (Index): A middle layer that stores a list of files and changes prepared for the next commit.
- Repository (Local Repo): The
.githidden directory where Git stores the complete history of all commits. - Remote Repository: A server (like GitHub) used to receive and share commits from local repositories.