在主分支上做了一个很好的提交之后我做了一系列的提交,事后我应该在另一个分支中做出来.我可以将这些提交(从特定提交开始)移动到另一个分支,并将良好提交保留为master上的最后一次提交吗?
mip*_*adi 25
当然:
$ git branch new-branch-name # Create a new branch from the current commit
$ git reset --hard <last good commit on master> # Reset master to the good commit
Run Code Online (Sandbox Code Playgroud)