Putting uncommitted changes at Master to a new branch by Git

后端 未结 4 440
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 02:03

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

4条回答
  •  走了就别回头了
    2021-01-30 02:32

    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.

提交回复
热议问题