Reputation: 398
I want to make cloned repository as bare at the same time i am cloning.
So I am using the command as:git clone --bare <remote_uri>
But it is not copying the files from remote, just creating a directory as bare.
Upvotes: 0
Views: 64
Reputation: 398
Cloning as bare will not create a working directory but it will only create a Local Repository i.e. file which are available in .git directory.
Upvotes: 1
Reputation: 20128
This is the purpose of the --bare
option.
If you want a clone with a work tree just do git clone <remote-uri>
without --bare
.
Upvotes: 2