|
||||
![]() Using GitHub for your HomeworkWe'll use GitHub Classroom for homework assignments -- for distributing homework material such as starter code, for submitting your work, and for feedback. You will need to have an account on GitHub which has special programs for students. For each homework we will distribute a URL that you will access to create your private repository on GitHub for the assignment. We've outlined the steps you should take to use this for your assignment. (1) Visit the URL link for the homework (2) If you have a GitHub account, login. If not, create an account. (3) Once you are logged in, you will be asked to "Accept the assignment". Do it! (4) A private git repository will be automatically created for you as a branch of the class starter repository and a link to the repository provided. Click on the link to go to the your homework repository. For HW1 this will only include a README file. In future homework assignments, it might include files with starter code that you will have to complete, supporting files, and data. (5) In the resulting homework repository view, click on the green box that says "clone or download", which will popup a window that says "Clone with HTTPS". Copy the URL shown by clicking on the clipboard icon to its right. (6) Go to a command line window on the computer where you will do the homework (e.g., your laptop or the gl server). cd to the directory where you will have subdirectories for each 471 homework assignment. Enter the command "git clone" followed by the URL which you can paste into the window. This will create a copy of your homework repository on your computer. (7) Edit the files locally. If you create additional files, use the git add command to make them part of the repository. When you are done, use the git commit and git push commands to upload your files to the to the 471 classroom repo on GitHub.
|