Git has three main states that files can reside in:
π» Modified- You have changed the file but have not committed it to your database yet.
π» Staged- You have marked a modified file in its current version to go into your next commit snapshot.
π» Committed- Data is stored in your local database
The three main sections of a Git project include:
π² Working Tree- A single checkout of one version of the project, pulled out of the database in Git directory for use.
π Staging Area- Located in Git directory. It stores information about what will go into your next commit.
π₯ Git directory- Where metadata and object database of the project are stored.
Source:Git
Top comments (0)