gitサーバ立ててから、bareリポジトリを素手で作成するまでのメモ。
--
bareリポジトリは /opt/git/ 以下に作成するとします。
git-daemonを起動
git daemon --enable=receive-pack --reuseaddr --base-path=/opt/git/ /opt/git/ --verbose &
/opt/gitにbareリポジトリの作成
cd /opt/git
mkdir sandbox.git
cd sandbox.git
git --bare init
export-okを作成
cd /opt/git/sandbox.git
touch git-daemon-export-ok
この時点で問題ない筈。
以下、/home/someone/tmpで
テスト
cd /home/someone/tmp
git clone git://localhost/sandbox.git
適当に編集してから・・・
remote追加
git remote add orgin git://localhost/sandbox.git
最後にPushテスト。
git push -u orgin master
わーい。