Skip to content

Instantly share code, notes, and snippets.

@andreyuhai
Last active January 8, 2019 23:46
Show Gist options
  • Save andreyuhai/71245303b113f1dffcdd130ef721a13f to your computer and use it in GitHub Desktop.
Save andreyuhai/71245303b113f1dffcdd130ef721a13f to your computer and use it in GitHub Desktop.
How to sync a forked repo with the original one

How to sync a forked repo with the original one

First add your upstream

git remote -v

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

git remote -v

Then you can fetch and do stuff

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