リポジトリの作り方

サーバ側で作ったリポジトリは、最初は空なのでcloneはできない。
サーバ側でなんかファイルを追加すればいいんだけど、--bareなリポジトリの場合はそれができない。
じゃあどうすんの?なメモ。

サーバにリポジトリの作成 -> ローカルにあるファイルをインポートの手順は以下の通り

cd /path/to/local_repos
git init
git add *
git commit -m 'first commit'
git remote add origin user@host:/path/to/repos.git
git push origin master