Skip to content

Instantly share code, notes, and snippets.

@rnarian
Last active July 20, 2018 17:50
Show Gist options
  • Save rnarian/8ed1bfe602771f58a3be to your computer and use it in GitHub Desktop.
Save rnarian/8ed1bfe602771f58a3be to your computer and use it in GitHub Desktop.
fetch upstream

Add upstream repo:

git remote add upstream git://github.com/user/repo.git

Fetch upstream:

git fetch origin -v; git fetch upstream -v; git merge upstream/master


Or set up alias in ~/.gitconfig:

[alias]
  pu = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment