Skip to content

Git Basics for Analysts and Statisticians

Learn Git through small repeatable workflows—not long lectures.

This site helps analysts, statisticians, epidemiologists, evaluators, and public health data teams practice the Git and GitHub workflow they need for everyday collaboration.

It is built for people adopting Git while real work is still moving: reports are due, staffing is tight, and nobody needs extra drama from their tools. The course uses small, repeatable tasks so learners can build calm working habits.

Diagram distinguishing working files, staging, local commits, and GitHub. Commit creates local history; push sends committed work to GitHub; pull brings shared commits back.

Learner questionGit/GitHub ideaCommand or place to check
What does Git know right now?Current branch, file changes, staged workgit status
What changed?Line-by-line editsgit diff and git diff --staged
What has been saved locally?Commits on your computergit log --oneline
What does GitHub have?Pushed branches, commits, and pull requestsRepository page on GitHub
What happens next?Pull, branch, stage, commit, push, or open/review a PRThe lesson checklists

Important course promise: Git becomes manageable when you can answer four questions: what Git knows, what GitHub has, what changed, and what happens next.

  • Cloning a repository from GitHub.
  • Reading git status before acting.
  • Reviewing changes with git diff.
  • Staging specific files.
  • Making clear local commits.
  • Understanding that git push sends commits; it does not commit file changes.
  • Pulling updates from GitHub.
  • Creating branches for small changes.
  • Opening, updating, reviewing, and merging pull requests.
PhaseLessonsOutcome
OrientationLessons 01–03Know what Git and GitHub are, install/check tools, clone a practice repo
Local workflowLesson 04Edit, inspect, stage, and commit locally
Sharing workLesson 05Pull from GitHub and push committed work
CollaborationLessons 06–07Use branches and pull requests
RepetitionLesson 08 + checklistComplete the full workflow several times

Start with the GitHub Basics infographic to see the whole safe collaboration loop at once.

GitHub Basics infographic showing the safe collaboration loop from branch to pull request to review and merge.

  1. What Git and GitHub Are
  2. Setup and First Orientation
  3. Cloning a Repository
  4. Status, Staging, and Commits
  5. Pushing and Pulling
  6. Branching
  7. Pull Requests
  8. A Complete Beginner Workflow