So in this section we’re going to learn how to use Git (and start to use GitHub) for individual work, solo. We’ll learn how to work with remotes, manage repositories, and navigate GitHub permissions in the web UI.
- Watch: 2.1: Network activity Proceed to 2.2 for the video and exercise :)
- On the command line: create a repository from the command line called “individual-work.”
- On GitHub.com, create a repository.
- On GitHub.com, upload your first week’s assignments to the “Individual” repository.
- Use the command line to bring the commits back down to your local repository.
Exercise: Re-create your assignment workflow
- With Visualizing Git, you’ll see the ability to make commits and branches.
- Choose an individual assignment from your course.
- Re-create the workflow you expect from your students to complete their assignment.
- Take a screenshot of your result from the visualization tool and post it to the Education Community.
- Watch 2.4 Merge
- Exercise: Wikipedia switcheroo
- Create a repository on your desktop called ‘planets’ with a readme.md and commit it.
- Choose a Wikipedia page about a planet of your choice.
- Copy the first paragraph about the planet, paste it into your readme.md and commit it.
- Create a new branch (git branch ) and switch to it (git checkout ).
- In atom, add Wikipedia entry about another planet into that branch’s readme.
- Save, then commit, then close out of atom.
- Does the file show your first planet? Or the second?
- Take a screenshot of your output and post it to the Education Community.
- Watch 2.5: Managing student repositories
- Exercise: How might you imagine using this tool for your courses?
- Exercise: Workflow
- Will you keep all course materials in a repository? Or just assignments?
- When will you expect students to commit?
- What sort of commit messages should they use?
- When do you want your students to push their code to GitHub?
- Exercise: Distributing assignments
- Create an organization with your course materials for one assignment in a repository.
- Create a Classroom, and an individual assignment.
- Send it to a colleague to accept.
- Take a snapshot of your teacher dashboard and post it to the Education Community.