I am working on a project, and had all of my tests passing on the master branch. I then made some changes, and when everything started failing, I realized that maybe I shou
You can stash your current changes (git stash), switch to the new branch and then apply the changes to the new branch using
git stash pop
Yes, just create the new branch and check it out:
$ git checkout -b new-branch
Then commit any changes you have. They'll be applied to the new, checked-out branch.