你如何使用 `--no-verify` `git cherry-pick --continue`?
How do you `git cherry-pick --continue` with `--no-verify`?
你如何 git cherry-pick --continue
与 --no-verify
因为 --no-verify
不是一个有效的选项。 git cherry-pick --no-commit --continue
不起作用,因为这两个参数是互斥的。
--no-verify
是 commit
命令的选项,而不是 cherry-pick
。
但是您可以做的是为您的cherry-pick
使用--no-commit
flag,那么git commit --no-verify
就可以了结束挑选。
如果你的cherry-pick
(没有--no-commit
)有合并冲突,你想在解决它们后--continue
,你可以暂时禁用当前仓库的git钩子与:
$ git config core.hooksPath # Print current setting
$ git config core.hooksPath '/dev/null/'
完成后,根据之前是否设置了core.hooksPath
,您可以恢复之前的设置:
$ git config core.hooksPath '/some/previous/path'
或再次取消设置:
$ git config --unset core.hooksPath
你如何 git cherry-pick --continue
与 --no-verify
因为 --no-verify
不是一个有效的选项。 git cherry-pick --no-commit --continue
不起作用,因为这两个参数是互斥的。
--no-verify
是 commit
命令的选项,而不是 cherry-pick
。
但是您可以做的是为您的cherry-pick
使用--no-commit
flag,那么git commit --no-verify
就可以了结束挑选。
如果你的cherry-pick
(没有--no-commit
)有合并冲突,你想在解决它们后--continue
,你可以暂时禁用当前仓库的git钩子与:
$ git config core.hooksPath # Print current setting
$ git config core.hooksPath '/dev/null/'
完成后,根据之前是否设置了core.hooksPath
,您可以恢复之前的设置:
$ git config core.hooksPath '/some/previous/path'
或再次取消设置:
$ git config --unset core.hooksPath