从Phabricator修订版中排除提交



我意外地在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 cherry-pick COMMIT_HASH

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

最新更新