ローカル†$ cd ソースのあるディレクトリ $ git init $ git add . $ git commit -m "first commit" リモート†# cd bareリポジトリを置く場所へ # git init --bare --shared リポジトリ名 ローカル†# git remote add origin ssh://user01@example.com/var/git/sample.git # git push -u origin master 参考URL:http://cameong.hatenablog.com/entry/20120808/1344436212 |