Gitolite git clone error

后端 未结 7 2076
小鲜肉
小鲜肉 2020-12-01 15:39

I am trying to setup gitolite on my server (Macos server).

I followed the instructions in the INSTALL document found here : http://sitaramc.github.com/gitolite/doc/1

7条回答
  •  独厮守ぢ
    2020-12-01 15:56

    I pretty much tried anything I could think of and couldn't get it to work...until I noticed somewhere that GIT is very high on email addresses...so I regenerated my ssh keypair using the -C option:

    ssh-keygen -t rsa -C "nospam@nowhere.org"

    Low and behold, all of a sudden I could clone gitolite-admin without any problem.

    Apparently the email in .gitconfig's user.email key MUST correspond to the email that was used to generate the SSH key. Honestly, if you only have 1 keypair in your .ssh folder, why on earth does it matter that the email corresponds? Imho, if you pass a key and the key is in the authorized_keys on the server, it should work regardless of the .gitconfig user.email property.

提交回复
热议问题