gpt4 book ai didi

git - 如何使用 BFG 删除 protected 提交

转载 作者:太空狗 更新时间:2023-10-29 12:49:14 25 4
gpt4 key购买 nike

在使用 BFG (https://rtyley.github.io/bfg-repo-cleaner/) 清理 repo 时,遇到以下问题:

Protected commits
-----------------

These are your protected commits, and so their contents will NOT be altered:

* commit ******* (protected by 'HEAD')

最佳答案

运行 BFG 时:--no-blob-protection 为我修复了它。

文档在这里:https://rtyley.github.io/bfg-repo-cleaner/ ,但我没有看到他们真正将其称为克服错误的方法。

注意:在我的例子中,我已经尝试手动删除文件,而不是使用 BFG,这让我处于必须使用 --no-blob-protection 的状态。

关于git - 如何使用 BFG 删除 protected 提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43231061/

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