2011-08-29 gitリポジトリ作成

結局freedomuneは中止されてました。
気を取り直してちょっとGitを使ってみたくてリモートリポジトリ(共有リポジトリ?)を作成してみました。もともとGitのリポジトリを作ってファイル管理を試していたのですが、他のPCでとりたいなぁなんちゃって。
環境:Mac 10.6
git config --global user.name"${user}"
git config --global user.email ${email}
git config -l
//編集されるのは以下のファイル
~/.gitcofig
//共有のリポジトリを作成
mkdir -p /var/git/repo/
cd /var/git/repo
git init --bare
touch touch git-daemon-export-ok
//共有リポジトリ公開
/usr/local/Cellar/git/1.7.6/libexec/git-core/git-daemon --export-all --enable=receive-pack --base-path=/var/git/repo &
sudo git clone --bare /Users/${user}/git/${project} /var/git/repo/${project}.git
//共有リポジトリからのチェックアウトテスト
mkdir /tmp/test
cd /tmp/test
git clone git://localhost/${project}.git
//やること
コマンドオプションの詳細調べないと
Web管理したいな
//参考サイト
http://aerial.st/archive/2009/07/22/public-git-repository-on-mac/