サーバに git の bare リポジトリを用意して共有する
プロジェクトのリポジトリを作って
$ mkdir tmprepos $ cd tmprepos $ git init $ touch empty $ git add . $ git commit -m "initialization"
$ sudo mkdir -p /var/git-repos $ cd /var/git-repos $ git clone --bare ~/tmprepos ./test.git $ touch test.git/git-daemon-export-ok
空のbareリポジトリを作るだけなら
$ git init --bare /var/git-repos/private.git $ touch /var/git-repos/private.git/git-daemon-export-ok
後はローカルの作業環境にクローンするだけ
$ git clone ssh://git.example.com/var/git-repos/test.git working