git リモートリポジトリの作り方
サーバ作業
mkdir /var/lib/git/HOGE/moge.git cd /var/lib/git/HOGE/moge.git git --bare init --shared
クライアント作業
mkdir HOGE/moge cd HOGE/moge git init echo "my first commit" > readme git add . git commit -m "my first commit." git remote add origin https://SERVERNAME/git/HOGE/moge.git git push origin master
ここまで成功したら、一旦削除して、Cloneしてみましょう。
git clone https://SERVERNAME/git/HOGE/moge.git echo "my second commit" >> readme git add . git commit -m "my second commit." git push origin master