【问题标题】:Pushing a feature branch remotely in hg在 hg 中远程推送功能分支
【发布时间】:2016-02-28 12:01:18
【问题描述】:

我克隆了一个 hg 存储库并创建了一个功能分支(通过 hg branch myfeature)。我已经通过hg add . 和随后的hg commit -m "My new feature branch." 对其进行了上演并提交了更改。

我现在想将这些更改(在分支中;不是作为default)推送到远程服务器(我从中克隆项目),以便其他开发人员可以对更改进行代码审查在myfeature 分支中。

我找到了一个推荐使用的博客:

hg push --create-branch-remote

但这对我不起作用 - 有什么想法会出错吗?

【问题讨论】:

    标签: mercurial feature-branch


    【解决方案1】:

    您忘记阅读hg help push 以获得您的版本的 Mercurial

    ...
        --new-branch            allow pushing a new branch
    ...
    

    【讨论】:

      【解决方案2】:

      看起来 --new-branch 是我想要的。

      【讨论】:

        猜你喜欢
        • 2021-09-17
        • 2019-02-02
        • 2013-06-10
        • 2011-09-10
        • 2016-07-08
        • 2020-05-22
        • 1970-01-01
        • 2016-10-25
        • 2014-02-04
        相关资源
        最近更新 更多