Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Git rebase into forked repo

Excerpted from here

  1. Add the remote (original repo that you forked) and call it “upstream”
git remote add upstream https://github.com/original-repo/goes-here.git
  1. Fetch all branches of remote upstream
git fetch upstream
  1. Rewrite your master with upstream’s master using git rebase.
git rebase upstream/master
  1. Push your updates to master. You may need to force the push with “--force”.
git push origin master --force