[英]Mercurial - How to restart a branch
So, we have a staging
branch that seems to have had one-too-many bad merges. 因此,我们有一个
staging
分支,似乎发生了太多错误的合并。 We'd like to create a fresh new staging
branch, but would also like to keep the same branch name, for consistency, and because it's part of our CI/CD process. 我们希望创建一个新的新
staging
分支,但也希望保持相同的分支名称,以保持一致性,并且因为它是CI / CD流程的一部分。
Is there a way to do this in mercurial? 有没有办法做到这一点?
I was thinking that the entire team could "prune" the branch, and then we remake it(branching it off another branch), but I'm not sure if this will work or will just cause a different headache. 我当时以为整个团队可以“修剪”分支,然后我们重新制作它(将其从另一个分支分支),但是我不确定这是否会奏效或只会引起其他麻烦。
I also want to avoid just starting a new branch called staging2
as I feel that that is just putting off the problem for later. 我还希望避免仅启动一个名为
staging2
的新分支,因为我认为这只是将问题推迟到以后。
将旧的staging
重命名为其他名称,然后再次创建新的staging
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.