Skip to the content.

Git-Github

Audience Computational skills required Duration
Biologists No pre-requisite Two 3-hour workshops (~3 hours of trainer-led time)

Description

This repository has teaching materials for a two part 3-hour Introduction to Git and Github workshop. These Materials are adapted from Software Carpentry’s lessons on Version Control with Git (for novices).

Git and Github provide an easy way to track changes in documents over time, while facilitating collaboration with other team members. Git allows for saving changes and creating new versions of documents, while Github allows for public access to the different versions, as well as, collaboration among individuals on a team. Together, Git and Github, allow for project development between multiple individuals while being able to retrieve all previous versions of the tracked documents.

While initially designed for saving and developing code collaboratively, there are many advantages for using version control with Git and/or Github for other text files and substantial works such as articles, books, and dissertations. Also, since Github hosts the documents online, you never need to worry about losing your priceless work due to your computer crashing. Join us in the workshop to learn the simple bash commands needed to save versions of files on your local computer, as well as, how to make them accessible online on Github.

These materials were developed for a trainer-led workshop, but are also amenable to self-guided learning.

Learning Objectives

Contents

“Track Changes” with your code: An Introduction to Git and GitHub (Part 1)

Lessons Estimated Duration
What is Version Control 15 min
Using Git/GitHub Desktop for version control locally 50 min
Using GitHub for version control “remotely” 50 min
Q&A 30 min

Coding with Others: Managing Conflicts on GitHub

Dataset

Download the workshop sample files zipped folder and unzip it.

Installation Requirements

GitHub Desktop

Please download and install GitHub Desktop

Github account

Create an account for yourself on GitHub. Please be sure to select the free/academic account, as this option has more long-term flexibility.


These materials have been developed by members of the teaching team at the Harvard Chan Bioinformatics Core (HBC). These are open access materials distributed under the terms of the Creative Commons Attribution license (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.