How to clone Git repository

Today we will show you how to clone git repository with HTTPS. Here we will give you step by step instruction for it.

Git clone remote repository, How do you clone a Git repository into a specific folder?, git clone local repository, git clone tutorial, git clone branch command, git clone ssh, git clone gitlab, git navigate to repository, git clone – Downloading an existing repository from a remote repository.

Let’s assume that we have already created the public repository and now we’re trying to clone it with HTTPS.

Steps to clone Git repository

  1. Navigate to repository and copy the repo URL
  2. Open terminal and change the working directory path
  3. Execute command to clone the repository

1. Navigate to repository and copy the repo URL

Open GitHub and navigate to the main page/landing page of the git repository.

Now try to copy the repository URL by clicking on the “Clone or download” button. You will find this button below the repository name at the right side of the page.

Make sure the URL should be HTTPS. Please refer to the image below for reference.

Clone repository - Clue Mediator
Clone repository – Clue Mediator

2. Open terminal and change the working directory path

In the second step, you have to open the terminal. Now change the path of the current working directory to the another location where you want to clone the repository.

Refer below link if git is not installed.

How to install Git in Windows

3. Execute command to clone the repository

At last, you have to execute the command and for that type git clone <REPO_URL>. So your command should look like below.

Hit the above command and your repository will be downloaded locally.

Repository download locally - Clue Mediator
Repository download locally – Clue Mediator

That’s it for today.
Thank you for reading. Happy Coding!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *