【问题标题】:What are the differences between arc feature [branch-name] and git branch [branch-name]?arc feature [branch-name] 和 git branch [branch-name] 有什么区别?
【发布时间】:2015-11-14 16:12:55
【问题描述】:

arc feature [branch-name]git branch [branch-name] 有什么区别?

他们似乎都创建了一个新分支。

【问题讨论】:

    标签: git phabricator


    【解决方案1】:

    arc feature [branch-name] 将:

    • 根据您当前签出的提交创建一个分支,
    • 将跟踪设置为您已签出的分支(这将跟踪本地分支,而不是远程分支),
    • 查看那个分支。

    git branch [branch-name] 只会根据您当前签出的提交创建一个分支。

    如果您使用 Arcanist 工作流程,强烈建议您对分支使用 arc feature,因为这往往很适合 arc diffarc land 的后续命令。

    【讨论】:

    • 根据上面的描述,应该相当于git checkout -t -b [branch-name]。所以我不确定为什么有必要“强烈推荐”使用arc feature
    • 可能是因为开发者忘记了-t
    猜你喜欢
    • 2018-08-31
    • 2012-04-17
    • 2011-12-20
    • 2020-03-05
    • 2018-10-07
    • 1970-01-01
    • 2017-04-08
    • 2015-06-22
    • 2017-08-19
    相关资源
    最近更新 更多