Gitflow
🍴Sync from a Collaborator's ForkMedium+500 XP
Workshop
Scenario reference

Sync from a Collaborator's Fork: the situation, step by step

The situation

A contributor sent a PR from their fork. You want to test their branch locally before merging.

Add their fork as a remote, fetch, check out their branch.

Medium · 3 steps · +500 XP

What you will practice

This scenario walks through 3 steps, in order:

  1. 01Add the contributor's fork
  2. 02Fetch their branches
  3. 03Create a local tracking branch from theirs
Reveal the step-by-step commands

Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.

  1. 1. Add the contributor's fork
    git remote add contrib git@github.com:contrib/app.git
  2. 2. Fetch their branches
    git fetch contrib
  3. 3. Create a local tracking branch from theirs
    git switch --track contrib/their-feature

Key takeaway

Add as a remote → fetch → check out. Standard OSS triage flow.