How to Clone a Git Repository into a Specific Folder?

By Hardik Savani April 4, 2022 Category : Git

Hello,

In this example, you will learn git clone with folder name. We will look at example of git clone folder name change. We will look at example of github clone repository into new folder. I would like to share with you how to clone git repository into specific folder. follow bellow step for git clone repository in new folder.

Sometimes we need to clone git repository in a specific folder. Same requirement I had. I read git documentation and find out a way to add options for a specific folder. you can easily git clone with a specific folder.

Let's see bellow syntax and example:

Syntax:

git clone git@github.com:{username}/{projectr-epo}.git {folder_name}

Example:

git clone git@github.com:myuser/demo.git laravelv9

I hope it can help you....

Tags :
Shares