git - BFG Repo Cleaner 无法清除远程中的 git 历史记录
问题描述
我试图从 git 历史记录中删除一个文件。我能够从本地删除该文件并为所有分支进行了强制推送
我的 cli 是:
java -jar bfg-1.13.1.jar --delete-files "{config.js}" --no-blob-protection my-repo.git
git reflog expire --expire=now --all
git gc --prune=now --aggressive
在这些处决之后,我确实强制推动所有分支Git push --force
当我尝试git checkout commitId(which include deleted file changes)
它给出“致命:参考不是一棵树:commitId ”意味着提交ID不存在于本地。
但
通过https://github.com/project/repo/commit/commitId两天后(git carbage 收集时间)我可以在 GitHub 事件中看到该提交 ID
意味着,该 commitId 不会在远程更新/删除。我甚至需要从远程删除这个提交。我们怎么做?
解决方案
推荐阅读
- python - Python。在徽章中存储到数据库中 - 除非新 ID 否则替换
- python - 如何使用 Keras 构建一个从主类训练和预测子类的 resnet?
- html - 以另一个函数/计算值作为参数调用函数
- ramda.js - Ramda:将列表拆分为段
- reactjs - 使用 axios 将本机表单数据与其中的对象和文件反应
- git - “git ls-files”究竟做了什么,我们如何从中删除文件?
- java - 从firebase上传字符串方法返回图像URL
- python - 'chromedriver' 可执行文件可能有错误的权限
- c# - 将 ListView 中选择的文件复制/移动到通过 FolderBrowserDialog 选择的文件夹失败
- android - 如何从图库中选择 GIF 并在图像视图中显示