Collaborating with Version Control on GitHub

Tool Logo

Collaborating with Version Control on GitHub

In this workshop, attendees will learn about the different ways that GitHub can be used to collaborate on projects including organizations, collaborators, issues, forking, and pull requests. This workshop is the second in the GitHub Workshop Series offered by the Brock University Digital Scholarship Lab.

A basic understanding of using repositories in GitHub is recommended for this workshop.

Estimated workshop length: 1.5 hours


Setup

In preparation for this workshop, you will need the following:


Workshop Tasks

Task Set 1

  1. Open a repository in GitHub desktop either by using the “Code” button in your online repository or by opening GitHub desktop and navigating to it from the dropdown menu
  2. Check that the repository is up to date by “Fetching” the origin and pulling any changes if needed
  3. Open the repository in your file explorer and edit the repository in some way (editing the README file is easiest) then commit and push the change.
  4. Go to the History tab in GitHub desktop and revert the commit by right clicking it and selecting “Revert changes in this commit”
  5. Push the reverted commit to your online repository
  6. Once you have done this, type “COMMIT REVERTED!!!!” in the chat to let me know you are ready to move on

Task Set 2

  1. Navigate to the link in the chat and make a new issue under the “Issues” tab
  2. Once your issue has been submitted, fork the repository using the “Fork” button at the top right of the page
  3. Edit the README file in your forked branch of the repository and add your favorite animal under the question there then commit your change (remember to leave a nice commit message)
  4. Create a pull request (open the “Pull requests” tab and click the “New pull request” button) with a note saying you answered the question and submit the request
  5. Once you have done all that, type “REQUEST SENT!!!!” in the chat to let me know you are ready to move on

Next Steps

After completing this workshop, the recommended next steps are:


This workshop is brought to you by the Brock University Digital Scholarship Lab. For a listing of our upcoming workshops go to Experience BU if you are a Brock affiliate or Eventbrite page for external attendees.