Skip to content

Instantly share code, notes, and snippets.

@wteuber
Created August 9, 2013 10:22
Show Gist options
  • Select an option

  • Save wteuber/6192652 to your computer and use it in GitHub Desktop.

Select an option

Save wteuber/6192652 to your computer and use it in GitHub Desktop.
synch your fork of a repo
git checkout master
git reset --hard origin/master
git remote -v
#should list origin (fork) and upstream (original repo)
#git remote add upstream https://github.com/original/repo.git
git fetch upstream
git merge upstream/master
git push origin master
#also see https://help.github.com/articles/syncing-a-fork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment