git move uncommitted changes to existing branch - Move existing, uncommitted work to a new branch in Git

git move commit to existing branch / git / git-branch / git-stash / git-reset

I started some work on a new feature and after coding for a bit, I decided this feature should be on its own branch.


Answer #1

If you commit it, you could also cherry-pick the single commit ID. I do this often when I start work in master, and then want to create a local branch before I push up to my origin/.

git cherry-pick <commitID>