stash current work into new branch #git #stash #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 | |
git stash branch <new-branch> stash@{0} | |
If the other branch already exists, you can just switch to it with checkout, then git stash apply | |
//via https://stackoverflow.com/a/30927991/119109 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment