I see that most of the answers here are outdated. Using the new switch command, there is no longer a need to do stash and pop. git switch -c new_branch -m will create a new branch named “new_branch”, switch to it and bring along all uncommitted changes as modified files. You can then continue working on the changes or commit them to the new …



