DEV Community

Calvin
Calvin

Posted on

2 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay