So I got gitolite set up. Simple. But there is one issue I am having. The SSH urls follow the format of git@host:repo
. I'm used to Bitbucket / Github where the urls follow the format of git@host:user/repo
. Is there a way to get the latter format using gitolite?
Another question. I have my ~/.ssh/config
file set up with the following entry:
Host <host>
User <user>
IdentityFile <path/to/public/key>
I don't have any configuration specifying git
as a user, and yet I am able to clone git@host:repo
without problem. Obviously, my ssh client is using my public key to access the server which is why gitolite is letting me clone the repo, but how does my ssh client know to use my public key which is only configured for the <user>
user and not the git
user?