I have edits to my working tree which I would like to continue working on in a branch. Will git checkout -b new_branch wipe out my current changes to the working tree? If so, how do I create a new branch and switch to it without reverting my working tree?
I have edits to my working tree which I would like to continue working
Share
Just do
git checkout -b new_branch. It will create the new branch with the changes in your working tree untouched.