Last updated on

When you create a repository, it is hosted directly on GitHub as a remote repository. You can clone it to get a local copy on your computer so you can make changes. The following guide will show you how to clone a repository to the server or computer you will be using to work on it.

How to clone a repository

  1. Point your browser to the main page of the GitHub Repository you want to clone.
  2. Select the Clone or Download Button
  3. If the drop down menu shows Clone with SSH, then select the Use HTTPS option
  4. Check to ensure the drop down menu shows Clone with HTTPS before proceeding
  5. Select the clipboard icon to copy the URL
  6. You will see the following message once you have copied the URL to your clipboard
  7. Open your SSH Terminal and login to your server
  8. Change to the directory in which you want to store the project
  9. Type git clone and then paste the URL you copied in step 3
  10. Press Enter and your local clone will be created
  11. You can run ls -lah to ensure the files were downloaded correctly
  12. .

Congratulations! You now know how to clone a repository to your local server.

 

SIGNUP FOR

BOLDGRID CENTRAL  

   200+ Design Templates + 1 Kick-ass SuperTheme
   6 WordPress Plugins + 2 Essential Services

Everything you need to build and manage WordPress websites in one Central place.

Leave a Reply

Your email address will not be published. Required fields are marked *