我们现在有一个“stiging”分支,其中“staging”似乎是一个更好的语义匹配。处理这个问题的好策略是什么?
最佳答案
更新到 stiging
分支并在其上创建一个新分支。然后关闭旧分支。
总结:
hg update stiging
hg branch staging
hg commit -m"Changing stiging branch to staging."
hg update stiging
hg commit --close-branch -m"This was a typo; use staging instead."
hg push --new-branch
关于Mercurial:我可以重命名分支吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4378684/