Skip to content

Lab Setup

Your instructor may be providing coding labs and assignments via GitHub Classroom. This guide is to help you in accepting and cloning these repositories onto your computer.

  1. Accept the assignment from the link provided by your instructor.

  2. When you navigate to the repository on GitHub, click the green “Code” button and copy the HTTPS Web Url to your clipboard.

  3. Open a terminal window on your computer and navigate to the folder where you keep your labs/assignments for the course.

    Your instructor will have given you guidance on where to put these on your computer. Follow their instructions!

  4. Type git clone [paste-from-your-clipboard] into the terminal. Note: You need to paste in your HTTPS Web Url that you copied earlier.

    For example, here is a lab that was accepted by Stewart Dent Jr..

    Sample cloning command
    git clone https://github.com/SchoolCourseOrg/prog-0101-in-class-lab-2-a03-stew-dent
  5. Now you can begin work on your assignment. Remember to do frequent commits!

    Making git commits
    git add .
    git commit -m "Describe what changes you made"

    And don’t forget to push!!

    Pushing is how you submit your work
    git push