Created
May 11, 2012 01:42
-
-
Save carlosmcevilly/2656980 to your computer and use it in GitHub Desktop.
git stash current changes to a new branch
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 stash save | |
git branch xxx HEAD | |
git checkout xxx | |
git stash pop | |
or do: | |
git checkout -b xxx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment