git clone --bare で clone したレポジトリに remote を設定する
git clone すると通常は clone 元が origin に設定されるので、git push でパラメータなしで push できるが、git clone --bare で clone すると origin の設定が必要なようだ。
例
$ git clone --bare git@github.com:/ .git $ cd .git $ git push fatal: No destination configured to push to. $ git remote add origin git@github.com: / .git $ git push Everything up-to-date