Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 717 Bytes

4. Cloning a repository.md

File metadata and controls

16 lines (14 loc) · 717 Bytes

What is Clone?

When you create a repository on GitHub, it exists as a remote repository. You can clone your repository to create a local copy on your computer. We clone the repo to local machine to make it easier to fix merge conflicts, add or remove files, and push larger commits.

Steps to be followed:

  1. Navigate to the main page of the repository
  2. Above the list of files, click ⬇️ Code.
  3. To clone the repository using HTTPS, under "Clone with HTTPS", click 📋
  4. Open Git Bash in location where you want to save the files.
  5. Type git clone, and then paste the URL you copied earlier.
$ git clone <https_url>
  1. Press Enter to create your local clone.