Cloning a Repository

  1. Sign into github.com
  2. Go to the repository of interest
  3. Click the green “Code” button on the right
  4. Click “copy to clipboard” button (at right)
  5. Open a terminal window on your computer
  6. Type cd and the path to where you want your local copy of the files, then hit return. For example, to put the repository in a folder on your Desktop called R_Projects, you would type cd Desktop/R_Projects
  7. Type: “git clone <paste from clipboard (ctrl-V or cmd-V)>” and hit return
  8. Now you have a cloned (copy) of the repository on your disk
  9. Edit as you like