Skip to content

Instantly share code, notes, and snippets.

View traderbagel's full-sized avatar

traderbagel traderbagel

View GitHub Profile
@traderbagel
traderbagel / add-upstream.md
Created March 11, 2018 01:16 — forked from sgnl/add-upstream.md
So you've forked a Repository and you want updates...

#tl;dr

setting up a branch to track a repo

pre: assuming you have forked a repo and cloned your fork to your computer

  1. git remote add [maintainer's name] [paste URL here]
  2. git fetch --all
  3. git branch --track [maintainer's name]_[branch] [remote name from step 1]/[branch you want to track] At this point you may watch to checkout to your newly create branch and issue a git pull command.