Intermediate Git for Biostatistics
A Three-Day Boot Camp
Welcome

This is the online version of Intermediate Git for Biostatistics: A Three-Day Boot Camp by The rgtlab Curriculum Project. It is a short second course in version control. We have situated it between the boot camp and the graduate sequence proper.
The companion volume Git and GitHub for Biostatistics: A One-Week Boot Camp takes a student from never having made a commit to collaborating through pull requests. This bridge picks up there. It teaches the intermediate skills a student reaches for within days of finishing the boot camp: committing a clean subset of a messy working directory, shelving work in progress, curating a branch’s history into something a reviewer can read, and recovering when an operation goes wrong. These are the skills that separate a tidy, reproducible project history from one that is merely serviceable.
The bridge is deliberately short, three days rather than five, at the same daily cadence: one hour of lecture, two hours of homework, no examinations. It is not intended as a survey of everything Git can do. We leave the infrastructure that surrounds version control in professional practice, namely continuous integration, containerization, dependency pinning, and data-versioning tooling, to the Biostatistics Practicum, which this bridge feeds directly.
The organizing principle is unchanged from the boot camp: version control is a research-integrity tool. Where the boot camp teaches a student to record history, this bridge teaches a student to curate and to recover it. The aim, in both cases, is a commit log that remains a faithful and legible account of how an analysis was built.
The scope of each day:
- Selective staging and work in progress. Committing part of a file with patch-mode staging, discarding selective changes, and shelving unfinished work with the stash.
- Rewriting history. Amending, interactive rebase, cherry-picking, and the discipline that governs when rewriting is safe and when it is forbidden.
- Recovery and forensics. The reflog as a safety net,
git bisectto locate the commit that changed a result, andgit blameand the pickaxe to investigate history.
Position in the sequence
This bridge is a preparatory companion, alongside the two boot camps, to the graduate sequence:
- Git and GitHub for Biostatistics, the prerequisite boot camp.
- R for Biostatistics, the parallel R boot camp.
- Biostatistics Practicum, workflow infrastructure, which this bridge feeds.
The Contents page lists every chapter on one page.
License
This book is licensed under Creative Commons Attribution 4.0 International.
The code samples printed in this book are licensed under the MIT License. The repository code (package functions and build scripts) is licensed under GPL-3.