我有一个分支,比如“XYZ”,我在那个分支上工作并做了一些提交,后来将它与我的主分支 merge 。现在,我想对我的代码做更多的更改,并想使用同一个分支。我没有删除分支。
我可以再次使用同一个分支吗?然后我可以再次将新提交与 master merge 吗?或者是创建另一个分支的唯一解决方案?
最佳答案
您仍然可以在该分支上工作,因为它仍然存在。
git-merge文档说:
Incorporates changes from the named commits (since the time their histories diverged from the current branch) into the current branch.
您可以继续在您的分支上工作,然后当您再次与 master merge 时,它将带来 master 上缺少的提交。
关于git - 我们可以在已经与 master merge 的分支上提交吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21751082/