【问题标题】:Exclude commits from Phabricator revision从 Phabricator 修订中排除提交
【发布时间】:2020-07-19 12:37:28
【问题描述】:

我不小心在 Phabricator 修订版中包含了最后五个提交,而我应该只包含最后一个。

当我尝试arc diff --update D100 时,我看到一个vim 页面,其中包含一堆关于我的修订的已注释掉的信息,没有可编辑的内容:

# Updating D100: REVISION TITLE
#
# Enter a brief description of the changes included in this update.
# The first line is used as subject, next lines as comment.
#
# If you intended to create a new revision, use:
#  $ arc diff --create

提交也被压缩在一起。 如何排除这四个不想要的?

【问题讨论】:

    标签: git phabricator


    【解决方案1】:

    好的,由于不需要的提交已与我打算包含在修订版中的最后一个提交一起被压缩,我首先需要挑选。

    git cherry-pick COMMIT_HASH
    

    然后我使用arc diff --update D100 HEAD^更新了修订版

    【讨论】:

    • 我有 10 次提交,我想保留前 8 次,并删除第 9 次和第 10 次提交,执行cherry-pick 8 次提交似乎很乏味,如何排除最后 2 次提交并更新差异.
    • 可以在创建或更新diff时指定base commit_id,arc diff --update
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-24
    • 1970-01-01
    • 2014-07-02
    • 2019-04-14
    • 1970-01-01
    相关资源
    最近更新 更多