gpt4 book ai didi

git - 如何回滚到 Jenkins 中的先前提交?

转载 作者:太空狗 更新时间:2023-10-29 14:22:56 24 4
gpt4 key购买 nike

我有一个以前的提交 sha。我如何回滚到 Jenkins 中的先前提交?

我有一个带有子模块的主项目。

我想我可以将之前的提交 sha 传递给构建参数化字段。另外,我有子模块,如何使用主项目提交 sha 将子模块回滚到之前的提交?

最佳答案

how do I rollback the submodules to the previous commit using the main project commit sha?

你没有:submodules是,by their nature , 固定 SHA1 记录为 gitlink , special entries in the index主要 repo 。

如果您将主存储库设置为以前的 SHA1,它将包含为子模块记录的 SHA1。

关于git - 如何回滚到 Jenkins 中的先前提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33703371/

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