Make new git branch with current uncommitted changes
If you have already started work, but forgot to cut a new branch beforehand, you can fix the mistake. Make a new branch with a command:
git checkout -b newbranchname
Then you can git add and git commit as needed.
References
Weblinks
Ripped off from Move existing, uncommitted work to a new branch in Git - Stack Overflow
Comments