首页 > 解决方案 > 尝试从旧提交中删除 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' 未更改

有谁知道为什么会这样?

标签: git

解决方案


推荐阅读