...

/

The .git Folder and Snapshots Links

The .git Folder and Snapshots Links

Learn how Git works behind the scenes.

In this chapter, we’ll learn the following:

  • We’ll learn how Git manages snapshots.
  • We’ll learn how Git manages branch pointers.
  • We’ll learn the three stages of tracking changes.

We’ll start with the workings of the Git snapshots.

The .git folder

As we run git init in the current folder, Git creates a .git folder in the project directory. The .git folder contains everything that Git needs to maintain the repository. ...