O'Reilly logo

Professional Git by Brent Laster

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connected Lab 8

Setting Up a GitHub Account and Cloning a Repository

In this lab, you'll get some practice with remotes by setting up a GitHub account, forking a repository, and cloning it down to y our system to work with.

Prerequisites

This lab requires that you have Internet access.

Steps

  1. Go to https://github.com.
  2. Fill in the Pick a username, Your email address, and Create a password fields.
  3. Click the Sign up for GitHub button.
  4. Accept the defaults on the next screen and click the Continue button.
  5. (Optional) Fill out the Interests sections on the next page or just click the skip this step link.
  6. Follow the instructions to verify your email address. Then click the Start a project button.
  7. Go to the calc2 project at https://github.com/professional-git/calc2.
  8. Click the Fork button (top-right corner) so that the repository is forked to your user ID. (Your URL changes to https://github.com/>github userid</calc2.)
  9. Open up a terminal session (that you can run Git in) on your local machine, and change back to your home directory (or at least out of any directories that have Git repositories in them).
    $ cd ~
  10. On the right side of the calc2 project web page, click the Clone or download button. A pop-up window appears, populated with the URL path you can use to clone this project down using the HTTPS protocol. To the right of that URL, click the clipboard icon to copy the path to your clipboard. This saves you from having to construct the path yourself.
  11. Switch back to your terminal ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required