私は gitolite をインストールしました (実験のために今のところローカルに) 動作しているように見えますが、新しいリポジトリはデフォルトで git clone 後にリモートを追跡していません。私の記憶が正しければ、github.com からリポジトリをクローンすると、すでにプッシュとプルが可能です。
これが私が試したものです:
$ git clone git@localhost:sandbox
Cloning into sandbox...
warning: You appear to have cloned an empty repository.
$ echo "A" > README
$ git add README
$ git commit README -m 'test'
$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'git@localhost:sandbox'
明示的にプッシュしようとすると、すべてが機能します。
$ git push origin master
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (6/6), 426 bytes, done.
Total 6 (delta 0), reused 0 (delta 0)
To git@localhost:sandbox
* [new branch] master -> master
この追加の手順は本当に必要ですか? デフォルトで設定できますか?github ではそうですよね?
ありがとうございました