Git - .git directory (GIT_DIR)

About

All repository files of git are stored in a directory named .git

It contains :

Management

Location

  • The default location is the first subdirectory of the directory repository
  • Otherwise you can set it:
    • as option via the –git-dir option of the git command line
    • or via the GIT_DIR environment variable.

Example to list the branches

git --git-dir .\subdirectory\.git branch

Powered by ComboStrap