お手軽gitリモートリポジトリの作り方メモ

リモートリポジトリの作成
@example.com

cd ~
mkdir git
mkdir git/FooBar.git
cd git/FooBar.git
git --bare init --shared=true

ローカルリポジトリからpush

mkdir FooBar
cd FooBar
git init
touch README
git add README
git commit -a -m "initial import"
git remote add origin hidek@example.com:git/FooBar.git 
git push origin master

ローカルにclone

git clone hidek@example.com:git/FooBar.git