Skip to content

Instantly share code, notes, and snippets.

@lonnen
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lonnen/9378491 to your computer and use it in GitHub Desktop.
Save lonnen/9378491 to your computer and use it in GitHub Desktop.
git status # make sure you have no unstaged changes
git checkout master # ensure you're on the master branch
git reset HEAD~15 # removes the last 15 commits, leaves the diff as unstaged changes
git checkout . # deletes all unstaged changes so your repo looks outdated to git
git pull mozilla master # pull all the commits you're missing, bringing you up to date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment