On Tue, Jan 19, 2010 at 08:34:04AM -0800, Konstantin Khomoutov wrote:
> On Jan 18, 2:42 am, Vincent P <ease...@gmail.com> wrote:
> > I follow the instructions below to set up a git repository with
> > gitosis on my home ubuntu server. I can connect to the repository
> > remotely perfectly and set up a new repository named My_Project. I
> > successfully push the content of My_Project to this repository using
> > the remote computer with an SSH key. Now I want to clone My_Project
> > locally onto another directory within the unbuntu server. How can I
> > do this? The instructions are only to clone remotely. It appears
> > that the clone command allows an "local" option but I haven't been
> > able to get it to work.
> git clone /path/to/the/repo
> git clone file:///path/to/the/repo
> The first will try to hardlink everything possible, the second will
> See `git help clone`.
Since you already have gitosis running then you could also
try cloning through the server.
git clone g...@servername:My_Project.git
If it says something along the lines of "permission denied" or
something then it's likely that your $HOME/.ssh directory
(and thus your ssh key) is different on your main box vs.
on the server. You can create a new key (just like you did
for gitosis originally) and add it to your gitosis.conf
if that is indeed the case.
That'll help you avoid any permission/umask/etc. issues since
it'll ensure that the 'git' user is the only one allowed to
touch the repos.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at