Presentation on the utility of git/GitHub for making scientific research findable, accessible, interoperable, and reusable.
Also includes a tutorial to the most essential features of git/GitHub.
3. • No more…. script, script_v2, script _v2_10-18edits, etc.
• Can always go back to any previous version!Version control
• Integrates edits from multiple people
• Keeps record of who did what and whenCollaboration
• All scripts in a single place with Readme files
Documentation
• You and others can recreate and/or modify an script
you created, even many years laterReproducibility
• Showcase your work to potential employers / schools
• Promote your lab's achievements and facilitate the
use of your pipelines
Visibility
Happy scientists!
7. 1. OpenTerminal
2. cd Desktop
3. git clone <repo’s https URL>
4. Enter GitHub username and
password (only have to do
this once)
8.
9. create / edit files
git add –A
•Stage files you've added or edited
•Can also use ’add’ command to stage
specific files
git commit –m <commit notes>
•Commits the changes to your local
repository
•Lets you document the latest changes
you've made
git push
•Sends your changes to the remote
repository (on GitHub)
Edit, stage/add, commit, push, repeat!
10.
11. • Pull changes from the remote (GitHub) repo that have been made by others to
work on the latest versiongit pull
• Create a new ”branch” of your repo to test out new code while keeping the old
”master branch”
• Can create multiple branches and name them whatever you want
git branch <branch name>
• Merges multiple branches together to make one cohesive repo again
• Also resolves conflicts between your version and the version you're trying to
pull from GitHub
git merge
• Similar to git branch, except it copies someone’s repo into a whole new
separate repogit fork