# What is Git?

Git is a **distributed version control system** used to track changes in source code over time.

It allows developers to:

* Save versions of their work
* Go back to previous states
* Work on the same project without overwriting each other

### Why Git exists?

Before Git, teams shared code manually, which caused:

* Lost work
* Broken files
* No history

{% hint style="info" %}
Git solves this by keeping a **full history** of changes and managing collaboration safely.
{% endhint %}

### How Git works?

Git works by:&#x20;

* Taking snapshots of your project
* Storing them as commits
* Letting you move between versions

Every developer has a **complete copy** of the project history.

<figure><picture><source srcset="/files/vWUtzaf8UIVw1S1pbQ1q" media="(prefers-color-scheme: dark)"><img src="/files/WHAf5jXA5CGxfmtUszul" alt="Diagram Explain What is Git and its work - ITC"></picture><figcaption><p>Git tracks project history using commits and branches.</p></figcaption></figure>

{% hint style="danger" %}
**Git is not GitHub**

* Git is a **tool**.
* GitHub is a **platform** built on top of Git.
  {% endhint %}

{% hint style="success" %}
You can use Git without GitHub, but GitHub makes collaboration easier.
{% endhint %}

### When you use Git?

You use Git when you:

* Build applications
* Work in teams
* Experiment without breaking code
* Want a safety net for your changes

{% hint style="info" %}
In modern development, Git is a **core skill**, not an optional one.
{% endhint %}

[Learn more →](https://www.w3schools.com/git/git_intro.asp?remote=github)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.elorabiabderraouf.dev/documentation/git-github/introduction/what-is-git.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
