Instantly share code, notes, and snippets.
git stash save
git checkout -b xxx
git stash pop
where xxx is the new branch name
xxx