【问题标题】:BFG doesn't update github pull requestsBFG 不更新 github 拉取请求
【发布时间】:2018-10-15 10:07:19
【问题描述】:

所以我按照此处的说明运行了 BFG。 https://rtyley.github.io/bfg-repo-cleaner/ BFG 的控制台输出看起来不错,但是在推送之后,当我回到 github 时,我仍然可以在 pull requests > clsoed > old merge request > files changed 中找到敏感数据。我见过谈论 github 的 gc 可能需要一些时间。我必须等待更改显示吗?


编辑 我忽略了推送输出中的一行 ! [remote rejected] refs/pull/1/head -> refs/pull/1/head (deny updating a hidden ref) 我要删除的一些文本位于隐藏文件中。是那个来源吗?

【问题讨论】:

    标签: github purge bfg-repo-cleaner


    【解决方案1】:

    您需要执行git push --force 以强制将已清理分支的重写历史发布到远程仓库。

    只有这样你才能在 GitHub 上看到这些提交的清理版本。

    但是,正如我 explained here 一样,您不能通过全局 push --mirror 推回拉取请求。尝试使用git push --force 逐个分支推送它们。

    【讨论】:

      猜你喜欢
      • 2015-02-16
      • 2017-12-29
      • 2013-06-09
      • 2017-08-22
      • 2017-08-30
      • 2015-12-12
      • 1970-01-01
      • 2016-12-26
      • 2018-05-02
      相关资源
      最近更新 更多