Putting uncommitted changes at Master to a new branch by Git

Viewed 46251

How can you put uncommitted changes to a branch TEST when I am at the branch master?

4 Answers

Also you can create a new branch and switch to it by doing:

git checkout -b new_branch
git add .

I use this all the time because I always forget to start a new branch before I start editing code.

Related