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.
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.