It consists of 4 parts:
- Working directory : This is your local directory where you make the project (write code) and make changes to it.
- Staging Area (or index) : this is an area where you first need to put your project before committing. This is used for code review by other team members.
- Local Repository : this is your local repository where you commit changes to the project before pushing them to central repository on Github. This is what is provided by distributed version control system. This corresponds to the .git folder in our directory.
- Central Repository : This is the main project on the central server, a copy of which is with every team member as local repository.
Some commands which relate to repository structure:
// transfers your project from working directory to staging area. git add
// transfers your project from staging area to Local Repository. git commit
// transfers project from local to central repository. (requires internet) git push