git

Create a new bare Git repository

Running git init --bare will create a new bare git repository using the current working directory.

$ git init --bare 

A bare repository is different than a working repository. Unlike a working repository, a bare repository cannot be directly written to.

Instead, the bare repository is typically used as a central repository, hosted at a centralized location, and shared with other developers.

Other developers will clone the bare repository, make their changes locally, then push those changes back up to the bare repository.

more Git posts