git - 尝试从旧提交中删除 api 密钥时收到警告
问题描述
我正在尝试从我的旧提交中删除 API 密钥,为此我正在使用此评论
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch 'workout_log/lib/key.properties'" --prune-empty --tag-name-filter cat -- --all
但是我收到了这个警告,没有任何内容被删除。
警告:参考 'refs/heads/main' 未更改 警告:参考 'refs/remotes/origin/main' 未更改 警告:参考 'refs/remotes/origin/main' 未更改
有谁知道为什么会这样?
解决方案
推荐阅读
- python - 如何用循环求解这个方程?
- javascript - 跟踪 Canvas 中的按键
- excel - 根据其他列中的条件汇总列中的唯一值(如果已过滤列)
- react-native - 如何在 Expo SDK 中添加应用内购买
- python - 如何模拟
.query.filter 在 Flask-SQLAlchemy - c# - 简单的 NUnit 测试失败,因为没有抛出异常(抛出测试之外)
- controls - (Progress AppBuilder) 哪个控件可以自动处理数据库浏览?
- apache-kafka - 向 Sprong Cloud DataFlow UI 公开 Kafka 属性
- javascript - 如何使用crome.js 允许用户上传他们的个人资料图片?
- javascript - 转换为对象时如何键入猫鼬模型