Table of Contents

What is the .git directory (GIT_DIR) ?

About

The .git directory is the git repository directory which is where almost everything that Git stores and manipulates is located.

GIT_DIR is an environment variable that you may set to locate it.

More information on the dedicated page: What is the Git Repository (Directory) ?