bare repository

A repository that is only the Git database, with no working tree, used as a shared place to push to and fetch from.

In more detail

Created with git init --bare, it holds what would normally be inside .git and nobody edits files in it, so a push can never overwrite someone's uncommitted work. By convention its directory name ends in .git, as in server.git. Git hosting services store repositories this way.

Example

git init --bare ../server.git

Related terms

Taught in

References