How to set folder name during cloning Git repository?

Wed, Jul 22, 2020 One-minute read

You want to clone repository to specific folder, for example because you have some naming convention on your disk. For doing this you have to call below command:

git clone <link_to_repo> <folder_name>

and then repo will be cloned to folder which you will indicate. Or you can create destination folder, go there and call:

git clone <link_to_repo> .

Then repository will be cloned to folder where you are currently.

Helpful resource: How do you clone a Git repository into a specific folder?


Thank you for visiting my website. I hope you enjoyed content which I prepared and learned something valuable from it. If you want to be informed about my next entries or occasionally get a message with a collection of some interesting links, please subscribe to my newsletter. I will be extremely pleased if you do this and join my community!

  • By clicking button below you agree to send you news from my blog, about my products and services. Above data are stored in Mailchimp and I do not share them to anyone. More info you can find in privacy policy.