我在克隆 gitolite-admin 存储库时遇到问题。我遵循了这个http://sitaramc.github.com/gitolite/install.html#migr并且它很完美。
我跑ssh-keygen -t rsa
了scp ~/.ssh/id_rsa.pub morten@ubuntu-server:/tmp/morten.pub
服务器上的 authorized_keys 如下所示:
# gitolite start
command="/home/morten/gitolite/src/gitolite-shell morten",no-port-forwarding,no-X11-forwarding,no-agent-forward$
# gitolite end
哪个AFAIK没问题。
当我git clone morten@ubuntu-server:gitolite-admin
在我的客户端上运行时,我得到
fatal: 'gitolite-admin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
我不知道我错过了什么!