Main Sections in Git
Git has 3 main sections - Working Directory, Staging Area and Local Repository.
Working Directory:
- This has all our project files and the .git directory.
- This is the directory where we make changes to the files, add new files, delete files, etc.
Staging Area:
- This is a section that contains all the information about what will go in the next commit.
- That is, it contains information about what will be stored in the local repository next.
Local Repository:
- This is the section where Git stores metadata and object database for our project.