gpt4 book ai didi

git - `--abort` 和 `--quit` 作为 `cherry-pick` 的定序器子命令有什么不同?

转载 作者:太空狗 更新时间:2023-10-29 14:31:02 30 4
gpt4 key购买 nike

根据 doc , 在 cherry-pick 的三个定序器子命令中,我们有这两个,对我来说,奇怪地相似:

--quit

Forget about the current operation in progress. Can be used to clear the sequencer state after a failed cherry-pick or revert.


--abort

Cancel the operation and return to the pre-sequence state.



到目前为止,我一直使用 --abort ,而且效果很好。什么是用例,其中 --quit是不同的/最好的?

最佳答案

--abort将带您回到开始挑选操作之前的位置,而 --quit将退出操作并让您保持当前的修订版本。除了您在遇到无法自动 cherry-pick 的修订后想要朝不同方向前进之外,我想不出其他用例,这就是为什么樱桃选择首先停止的原因,对吧?

关于git - `--abort` 和 `--quit` 作为 `cherry-pick` 的定序器子命令有什么不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55431768/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com