Moving uncommitted changes to a new branch [duplicate]

Question

Possible Duplicate:
Move existing, uncommited work to a new branch in Git

I have some code in branch ABC.

After making some changes to it, i'd like to move all those uncommitted changes into a commit on a new branch ABC_1.

How can this be done please?

Answer

Just create a new branch:

git checkout -b newBranch

And if you do git status you'll see that the state of the code hasn't changed and you can commit it to the new branch.

Find unmerged Git branches?

Where to store my Git personal access token?