作者:为徐嘉伟丷默哀 | 来源:互联网 | 2023-09-01 09:47
Istartedsomeworkonanewfeatureandaftercodingforabit,Idecidedthisfeatureshouldbeon
I started some work on a new feature and after coding for a bit, I decided this feature should be on its own branch.
我开始研究一个新功能,经过一段时间的编码,我决定这个功能应该在它自己的分支上。
How do I move the existing uncommitted changes to a new branch and reset my current one?
如何将现有的未提交更改移动到新分支并重置当前更改?
I want to reset my current branch while preserving existing work on the new feature.
我想重置当前分支,同时保留新功能的现有工作。
5 个解决方案