Move existing, uncommitted work to a new branch in Git
Asked 07 September, 2021
Viewed 542 times
  • 59
Votes

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

How do I move the existing uncommitted changes to a new branch and reset my current one?

I want to reset my current branch while preserving existing work on the new feature.

9 Answer