mkdir リポジトリ名.git

cd リポジトリ名.git

git init --bare --shared

※git init に --bare を付与すると、ファイルの実体を持たずに管理する。