Skip to content

Instantly share code, notes, and snippets.

@wbtuomela
Created February 18, 2016 20:24
Show Gist options
  • Save wbtuomela/cb962455e90742010232 to your computer and use it in GitHub Desktop.
Save wbtuomela/cb962455e90742010232 to your computer and use it in GitHub Desktop.
Merge upstream into forked tree
For example, current branch name is "proto" and remote repository name is "upstream".
This command performs the following processings in order.
git stash
git checkout master
git pull upstream master
git checkout proto
git rebase master proto
git stash pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment