How To Clone Repository
In this tutorial we will learn about how to clone a GitHub repository to your local machine.
What is Cloning?
Cloning a repository means creating a local copy of a remote repository on your computer. This allows you to work on the project locally, make changes, and sync them back to the remote repository.
Prerequisites
Before cloning a repository, make sure you have:
- Git installed on your computer
- A GitHub account (optional, for private repositories)
- The repository URL you want to clone
Steps to Clone a Repository
Step 1: Get the Repository URL
-
Go to the repository you want to clone.
-
Click on the green "Code" button and copy the HTTPS URL.
Repository URL
https://github.com/sanjay-kv/Learn-GitHub.git
Step 2: Open Command Line/Terminal
Open your command prompt (Windows) or terminal (Mac/Linux) and navigate to the directory where you want to clone the repository.

