Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to git clone from *local bare* repository

Say I have a bare repository on my local machine at ./new-bare.git. What is the correct way to clone it to another location on my machine?

like image 361
Omer Dagan Avatar asked Aug 16 '16 08:08

Omer Dagan


1 Answers

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.
done.
like image 90
frlan Avatar answered Oct 03 '22 03:10

frlan