Omer Dagan Omer Dagan - 1 year ago 127
Git Question

How to git clone from *local bare* repository

Say I have a bare repository on my local machine at

What is the correct way to clone it to another location on my machine?

Answer Source

There is no difference in cloning from a not bare repository:

/tmp> mkdir foo
/tmp> git init --bare foo 
Initialized empty Git repository in /tmp/foo/
/tmp> git clone /tmp/foo /tmp/baa
Cloning into '/tmp/baa'...
warning: You appear to have cloned an empty repository.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download