Skip to content

Instantly share code, notes, and snippets.

@jongyllen
jongyllen / gist:6681267
Created September 24, 2013 07:07
GIT - reset fork
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force
@jongyllen
jongyllen / gist:6681278
Created September 24, 2013 07:09
GIT - Sync fork
git remote -v
git remote add upstream https://github.com/otheruser/repo.git
git remote -v
git fetch upstream
git branch -va
git checkout master
git merge upstream/master