cygwin で sshd と git を動かす

やっとうまく行った。

サーバを立ち上げていなかったorz



Cygwin Terminal で、


$ touch git-daemon-export-all-ok
$ git daemon --export-all --enable=receive-pack --base-path=/home/kageyu/Git/


予め c:\cygwin\home\kageyu\Git\ にリポジトリを作成しておくこと。

hoge を管理したければ c:\cygwin\home\kageyu\Git\hoge.git\ というディレクトリを作成し、右クリック→Git ここにリポジトリを作成 で、「Bare を生成」にチェックを入れて、OKするとできる。