How to Clone a github repository using terminal.

Below are simple steps on how to clone a github repository.

  1. On GitHub, navigate to the main page of the repository.

  2. Under the repository name, click Clone or download. 


  3. To clone the repository using HTTPS, under "Clone with HTTPS", and copy the link.

  4. Open Terminal.

  5. Change the current working directory to the location where you want the cloned directory to be made.

  6. Type git clone, and then paste the URL you copied in; example($ git clone github.com/YOUR-USERNAME/YOUR-REPOSITORY)

  7. Press Enter. Your local clone will be created.
$ git clone github.com/YOUR-USERNAME/YOUR-REPOSITORY.

Ta da! You just cloned your repository 🙂

— Copied and modified from github documentation. 😶