These are notes are for teaching git collaboration through only Github (no local clients). Not putting files onto participants' machines reduced problems that occur from using different operating systems and does not require any local software installation.
- Define git vocabulary (commit, fork, pull request, repository, commit message).
- Demonstrate ability to navigate through a Github repository main page.
- Define the difference between a directory and a repository.
- Create a repository on GitHub.
- Demonstrate ability to commit changes to text files with a commit message.
- Evaluate repository History.
- Create a pull request to someone else's repository.
Brief introuction showing them how our rrhack group collaboratively made our curriculum material.
Total time: 45 minutes
Follow along (15 minutes)
- Everything is isolated to a
README.md
file. - Have everyone go to their GitHub profile page (Everyone should already have a GitHub account, because you included that in the setup instructions for the workshop, right?)
- Introduce the main features of the home page.
- Create new repository.
- call it
work-organization-yourName
- In the details write "tips to organizing research".
- make sure they initiate a
README.md file
. Once the repository was created, again show them around the page, highlighting that they have made one commit with the addition of theREADME.md
file and explaining that all that they are looking at is a directory with one file.
- call it
-
Edit the file. Click on
README.md
, then click "edit this file". -
Add the following information into the
readme.md
file (allow ~10 minutes):- Name?
- What kind of scientist do you you tell people you are at dinner parties?
- In the past month, what are the three main activities you have been doing at work?
- What are the three most important tools/strategies you use for organizing your work?
Encourage them to practive markdown syntax use at least one hyperlink, bullet point/number set, and a header. Do guide them to the preview changes option to help them along, and paste this Markdown help link into the etherpad.
- Commit.
- Talk about commit messages.
- Show them where the repository is. Show them the repository has a url address that is composed of their user name and repository name.
- Fork a partners Github repository.
- The easiest way to have them find each other is typing directly into url. The search for user option only works if they verified their address through email and many times they do not.
- Edit forked repository by pasting in their questions below the originals. Commit.
- Create Pull request.
- Accept pull request.
- Look at cool Github features.
- Look at Blame, Issues, Wiki, Repo graphs, ect.. Show another cool repository example, like maybe the ReXML repository.
- Get excited about collaborating on Github.