When I cloning Git repository, for example
[email protected]: mainrepo / index.git
I create a folder Index , where all the files are lying.
Question: And if I don’t want to create a folder index , and the files were cloned just in that folder, where I am, or another specified, is it possible?
Answer 1, Authority 100%
in that folder where I am
$ git clone url.
Other specified
$ git clone url is another / catalog
The specified directory (if already exists) should be empty. Otherwise, get a mistake:
Fatal: Destination Path ‘.’ ALREADY EXISTS AND IS NOT AN EMPTY DIRECTORY.
Details on the use of the Git Clone
command>See Documentation .