Skip to content

How to Clone a Repository

Back to Git


📥 How to Clone a Repository

Cloning creates a local copy of a remote repository on your machine.

1. Get the URL

Go to your repository on GitHub. Click on Code -> Select HTTPS -> Copy the URL.

Copy URL

2. Run Git Clone

Open your terminal and use the git clone command followed by the URL:

git clone https://github.com/vigneshsweekaran/firstproject.git

Terminal Clone

You have now successfully cloned the repository to your local computer.


📺 Video Tutorial

Git Cloning


🧠 Quick Quiz — Cloning

#

What does git clone do?


📝 Want More Practice?

👉 Start Git Beginner Quiz (20 Questions)


📬 DevopsPilot Weekly — Learn DevOps, Cloud & Gen AI the simple way.
👉 Subscribe here