自分のPCでGitリポジトリサーバを動かしてソース共有する
このページに載っていることが全て
Windows: LAN内専用のGitリモートリポジトリを作る - すたらブログ
コマンド部分だけ引用する
サーバ側
$ mkdir sample.git $ cd sample.git $ git init --bare --shared=true $ touch git-daemon-export-ok $ git daemon --export-all --enable=receive-pack
既存ソースをpush
$ git remote add origin //XPS8700/sample.git $ git push origin master
$ cd /任意の/場所 $ git clone //XPS8700/sample.git
共有フォルダの下をリポジトリにした。
C:\share\git\hoge.git
→shareを共有フォルダにする。
外部からのcloneは
git clone git://ホスト名/share/git/hoge.git