I use gitosis to manage git repositories. normally I clone a project with command pattern like this
git clone git@host:MyProject.git
The full path of MyProject is /home/git/repositories/MyProject.git
Today, I want to create a new account to share my project, so I create a account named share
, with this account, I use ssh-keygen
to create a ssh key, and put it in gitosis.
Now it can access the project. But the question is: with this account, I have to access repositories with full path:
git clone share@host:/home/git/repositories/MyProject.git
Does anyone know how to clone it just with the project name?