The .git directory contains, among other things, a compressed object database representing the complete history of the project, an index file which links that history to the current contents of the working tree, and named pointers into that history such as tags and branch heads.