Skip to content

Instantly share code, notes, and snippets.

@Pyppe
Created December 29, 2016 12:42
Show Gist options
  • Save Pyppe/71dbcca8a829e5dcefef0e91ca60abc5 to your computer and use it in GitHub Desktop.
Save Pyppe/71dbcca8a829e5dcefef0e91ca60abc5 to your computer and use it in GitHub Desktop.
Configure Github upstream for forked repo

Configure fork upstream

See Configuring a remote for a fork.

git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git

Sync the fork

See Syncing a fork

git fetch upstream
git checkout master
git merge upstream/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment