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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With