Context: I\'m working on master adding a simple feature. After a few minutes I realize it was not so simple and it should have been better to work into a new branch.
Try:
git stash git checkout -b new-branch git stash apply