What's the deal with the .git folder?

It's a hidden folderIt contains a file that specifies the HEADWe can view its contents with ls .gitWe can find details on branches and tags in .git/HEAD

Great! .git is a hidden folder and contains all the details about the repository.

Whoops! .git is a hidden folder and contains all the details about the repository.