<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/understanding-git-a-beginner-s-guide--sbfxyscje" -->

---
title: Understanding Git: A Beginner's Guide !! | daily.dev
description: Discussion about "Understanding Git: A Beginner's Guide !!" on daily.dev - join the developer community
canonical: https://daily.dev/posts/understanding-git-a-beginner-s-guide--sbfxyscje
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Understanding Git: A Beginner's Guide !! | daily.dev
og:description: Discussion about "Understanding Git: A Beginner's Guide !!" on daily.dev - join the developer community
og:url: https://daily.dev/posts/understanding-git-a-beginner-s-guide--sbfxyscje
og:image: https://api.daily.dev/og/posts/sbfxYsCje.png
og:image:alt: Understanding Git: A Beginner's Guide !!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Understanding Git: A Beginner's Guide !!

**[Dev Tools](https://daily.dev/sources/devtools)** · [@izmroen](https://daily.dev/izmroen) · 15 upvotes · 1 comments

## Content

Hey everyone 👋,
In this article I will introduce Git in general by explaining some basic terms 💡 so that in the next article 🌟 we will see the commands and some other things

✅ the first thing we need to know  what's Git ??

## 1. What is Git ❓

**Git** is a **version management tool** or **VCS** in English (version control system) which allows store a set of files 🗃️ while maintaining a timeline 🎞️ of all changes which were carried out on it.

It is part of the family of so-called decentralized VCS because in its operation each developer 👨‍💻 will have a complete local copy of the history of his source code.

✅ Now let's explore some terms that one needs to learn to better understand the concept of Git .

## 2. Basic operation of Git ⚙️:

Git is a decentralized version management system. This means that the repository data Git is not located on a remote server but on your machine.

###  a Git repository :
A “repository” corresponds to the copy and import of all the files of a project
in Git.
There are two ways to create a Git repository:
> - You can import 📥 an existing directory into Git.
> - You can clone 📋 an already existing Git repository.

### File states :
Git manages 3 states in which files can reside: **modified**, **indexed**, & **committed**.
> - **Modified** means that you have modified 🔄 the file but it has not been yet been validated in base.
> - **Indexed** (“staged”) means that you have marked a file modified in its version current so that it is part of the next project snapshot ➡️. 
> - **Committed** means that the data is stored securely in your local database 🛢️.

### Work areas :
File states are linked to work areas in Git. Depending on its condition, a
file will be able to appear in this or that work area. Every Git project is composed of three sections: the **working directory**, the **staging area** and the **repository**. 

![image](https://res.cloudinary.com/daily-now/image/upload/s--ZYrIgtU_--/f_auto,q_auto/v1703707963/ugc/content_ad6e0a10-4177-4080-b1c4-2867211672db)

 - The **working directory** corresponds to a unique extraction of a version of the project. Files are extracted from the compressed database located in the directory Git and are placed on disk so that they can be used or modified.
- The **staging area** corresponds to a simple file, generally located in the Git directory, which stores information about what will be part of the next
snapshot or the next commit.
- The **Repository** is where Git stores metadata and the database from the objects in your project. This is the main part or the heart of Git.

for the next article we will see the basic commands and some ...🧠🌟

## Community discussion

Top comments from developers on daily.dev.

**@kraves** · 1 upvotes

> Thanks for your time in sharing a vital reminder for us web3 101 beginners.

---

[View this post on daily.dev](https://daily.dev/posts/understanding-git-a-beginner-s-guide--sbfxyscje)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/understanding-git-a-beginner-s-guide--sbfxyscje","headline":"Understanding Git: A Beginner's Guide !!","text":"Discussion about \"Understanding Git: A Beginner's Guide !!\" on daily.dev - join the developer community","url":"https://daily.dev/posts/understanding-git-a-beginner-s-guide--sbfxyscje","datePublished":"2023-12-27T20:39:45.127Z","dateModified":"2023-12-27T20:39:48.542Z","author":{"@type":"Person","name":"IzMroen","url":"https://daily.dev/izmroen","image":"https://media.daily.dev/image/upload/s--4SBtwyjI--/f_auto/v1727559418/avatars/avatar_4GhGvwmnPzJXcgOTNRB6f","description":"Open-Source Contributor - Full Stack Web/Mobile Developer - UI/UX Designer","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":45}},"image":"https://media.daily.dev/image/upload/s--Do1q7Usi--/f_auto,q_auto/v1703709947/posts/sbfxYsCje","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":15},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"comment":[{"@type":"Comment","text":"Thanks for your time in sharing a vital reminder for us web3 101 beginners.","datePublished":"2024-01-03T01:11:23.295Z","url":"https://daily.dev/posts/sbfxYsCje#c-wV6x3lRiC","author":{"@type":"Person","name":"Clinton Craven","url":"https://daily.dev/kraves","image":"https://lh3.googleusercontent.com/a/ACg8ocJTdwp1xLjfSg5BhIJGac8icjMdqCZHiIC4yAi4kodKe8Wn=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/devtools","name":"Dev Tools"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Dev Tools","item":"https://daily.dev/squads/devtools"},{"@type":"ListItem","position":3,"name":"Understanding Git: A Beginner's Guide !!"}]}
```

