Home git How to specify a folder when cloning Git

How to specify a folder when cloning Git

Author

Date

Category

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 .

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions