DEV Community

Calvin
Calvin

Posted on

Reading Snippets [27 => Git]

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)