Before we get started with commands and operations, let us first understand the primary motive of Git. The purpose of Git is to manage a project or a set of files as they change over time. Git stores this information in a data structure called a Git repository. The repository is the core of Git.
To be very clear, a Git repository is the directory where all of your project files and related metadata are stored. Git records the current state of the project by creating a tree graph from the index and is usually in the form of a Directed Acyclic Graph (DAG).