Last active
August 29, 2015 13:57
-
-
Save lonnen/9378491 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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