# Git

Dolt implements Git-style version control on tables instead of files.

Dolt adopts the Git-interface to version control. There are [commits](https://docs.dolthub.com/concepts/dolt/git/commits), [branches](https://docs.dolthub.com/concepts/dolt/git/branch), [merges](https://docs.dolthub.com/concepts/dolt/git/merge), and all the other Git concepts you are familiar with. If you know Git, Dolt will feel very familiar because conceptually, Dolt is modeled on Git.

On the command-line, these concepts are exposed as a replica of the Git command line. Where you would type `git log`, you now type `dolt log`. Where you would type `git add`, you type `dolt add`. The replication extends to the command arguments.

In SQL, Dolt becomes a bit more complicated because no Git-equivalent to SQL exists. Git read operations are modeled as [system tables](https://docs.dolthub.com/sql-reference/version-control/dolt-system-tables). Git write operations are modeled as [stored procedures](https://docs.dolthub.com/sql-reference/version-control/dolt-sql-procedures). But conceptually, all the Git concepts you are familiar with extend to SQL.

In this section we explore the following Git concepts and explain how they work in Dolt:

1. [Commits](https://docs.dolthub.com/concepts/dolt/git/commits)
2. [Log](https://docs.dolthub.com/concepts/dolt/git/log)
3. [Diff](https://docs.dolthub.com/concepts/dolt/git/diff)
4. [Branch](https://docs.dolthub.com/concepts/dolt/git/branch)
5. [Merge](https://docs.dolthub.com/concepts/dolt/git/merge)
6. [Conflicts](https://docs.dolthub.com/concepts/dolt/git/conflicts)
7. [Remotes](https://docs.dolthub.com/concepts/dolt/git/remotes)
8. [Working Set](https://docs.dolthub.com/concepts/dolt/git/working-set)


---

# 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.dolthub.com/concepts/dolt/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.
