Last active
January 3, 2016 14:59
-
-
Save joechrysler/8479938 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 checkout -b new_branch # make the new branch so you don't lose commits | |
git push origin new_branch:new_branch # push your new branch to github so github doesn't lose commits | |
git checkout master # switch to master so that you're resetting master, not your new branch | |
git reset --hard cbedd62 # move master back to the last commit it should be on | |
git checkout master # you should be at the old commit. | |
git push -f origin master:master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment