Git で remote repository

設定メモ。


$ git clone --bare /var/www/project/ /var/git/project.git


# vi /etc/httpd/conf.d/git.conf


DAV on
AuthType Basic
AuthName "Git Authorization"
AuthUserFile /var/git/.htpasswd
Require valid-user


$ cd /var/git/project.git
$ git update-server-info

他サーバからhttpでclone


$ git clone http://domain/path/project.git ./project