Skip to content

Instantly share code, notes, and snippets.

@trinaldi
Created December 6, 2017 18:57
Show Gist options
  • Save trinaldi/781e155a7c38318f7bf682b75c474da2 to your computer and use it in GitHub Desktop.
Save trinaldi/781e155a7c38318f7bf682b75c474da2 to your computer and use it in GitHub Desktop.
Match forked repo to original repo
git remote add upstream https://github.com/some_user/some_repo
git fetch upstream
git checkout master
git reset --hard upstream/master  
git push origin master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment