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