hotfix
将分支合并到master
/的最佳实践是develop
什么?
我需要将它合并到两个分支中吗
hotfix → master
hotfix → develop
或合并到master
然后到develop
之后。
hotfix → master → develop
hotfix
将分支合并到master
/的最佳实践是develop
什么?
我需要将它合并到两个分支中吗
hotfix → master
hotfix → develop
或合并到master
然后到develop
之后。
hotfix → master → develop
您可以将您的修补程序分支合并到两者中master
(develop
根据流行的成功 git 分支模型)
git checkout master
git merge --no-ff hotfix
git checkout develop
git merge --no-ff hotfix
然后,您可以安全地删除您的修补程序分支。
或者git cherry-pick <hotfix-commit-hash>
在两个develop
和master
分支上使用。
Cherry-picking是将单个/几个提交带入分支的最简单方法。