Last active
May 19, 2017 22:15
-
-
Save karlcow/5cd79259e696e0a52eaff35951b21803 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
# done some commits on last version of master by mistakes | |
# and some modifications still not committed | |
git stash | |
git branch my_new_branch | |
git reset --hard origin/master | |
git checkout my_new_branch | |
git stash pop | |
# I'm now on my new branch as I should have been |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment