The main task of Git is to keep track of code versions and allow developers to go back to any previous state if necessary. This is done by taking a snapshot of every version and maintaining it in a local file storage system. Unlike other systems, Git uses local file storage to store snapshots, which means that Git can be used locally—even without an internet connection. With the local version of Git, you can do almost everything that you can do with an internet-connected version of Git.
After you install Git in your project, you can choose which directory of your filesystem you want to keep under Git version control. Normally, a project or directory—which is one entity in Git—is called a repository. A repository might contain different projects, one project, or just some of the project files, depending on what you want to keep in Git version...