GitHub for Collaborative Workflows
Megumi Oshima & Nicholas Ducharme-Barth
January 2025
The Turing Way Community. This illustration is created by Scriberia with The Turing Way community, used under a CC-BY 4.0 licence. DOI: 10.5281/zenodo.3332807
installed on local computer
tracks changes to files
separate versions
central, remote storage of files
everyone can contribute changes
changes can be combined and shared
We can leverage the interplay between both to help us share code and collaborate with others!
git clone
- if you started the repository on GitHubgit init
- if you started the repository on your computerMake a commit in 2 stages:
save your changes locally and then stage the files you want to commit
git add <FILENAME>
commit your changes
git commit -m "descriptive commit message"
To sync the changes you’ve made locally with the remote repository, you need to “PUSH” your commits
git push
To sync changes from the remote repository to your local computer you need to “PULL” commits
2 ways:
1. git pull
git fetch
, then eventually git merge
The default for all repositories is main
Let’s make our first commit!
.md
) with:A list of everyone in your group, including:
their affiliation
their GitHub name
a picture of a species you work on
a code chunk with your most used function
a task list of three things you would like to learn from the workshop
Save the file with a new name.
Commit your file, and push to the repository.
ISC Open Science Workflows Workshop 2025