Mercurial:我可以重命名分支吗? [英] Mercurial: Can I rename a branch?

查看:63
本文介绍了Mercurial:我可以重命名分支吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们现在有一个"stiging"分支,其中"staging"似乎是一个更好的语义匹配.处理这个问题的好策略是什么?

We now have a "stiging" branch, where "staging" seems to be a far better semantic fit. What's a good strategy for handling this?

推荐答案

更新到stiging分支并从中创建一个新分支.然后关闭旧分支.

Update to the stiging branch and create a new branch off of it. Then close the old branch.

总结:

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:我可以重命名分支吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆