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.
-
Accept the assignment from the link provided by your instructor.
-
When you navigate to the repository on GitHub, click the green “Code” button and copy the HTTPS Web Url to your clipboard.
-
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!
-
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 -
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