Git: Create a branch from unstaged/uncommitted changes on master

前端 未结 6 2117
醉酒成梦
醉酒成梦 2020-11-28 17:22

Context: I\'m working on master adding a simple feature. After a few minutes I realize it was not so simple and it should have been better to work into a new branch.

6条回答
  •  自闭症患者
    2020-11-28 17:24

    If you are using the GitHub Windows client (as I am) and you are in the situation of having made uncommitted changes that you wish to move to a new branch, you can simply "Crate a new branch" via the GitHub client. It will switch to the newly created branch and preserve your changes.

提交回复
热议问题