我正在尝试使用此GitHub过程删除具有敏感数据的文件.
但是,这对我的特定回购不起作用.当我跑:
git filter-branch --index-filter 'git rm --cached --ignore-unmatch some_file.json' \
--prune-empty --tag-name-filter cat -- --all
Run Code Online (Sandbox Code Playgroud)
完成时:
Rewrite 73f9cce9ab282cec272022314f361c1cd48955a7 (418/418)
WARNING: Ref 'refs/heads/master' is unchanged
WARNING: Ref 'refs/remotes/origin/blah' is unchanged
WARNING: Ref 'refs/remotes/origin/blah2' is unchanged
WARNING: Ref 'refs/remotes/origin/blah3' is unchanged
WARNING: Ref 'refs/remotes/origin/blah4' is unchanged
WARNING: Ref 'refs/remotes/origin/master' is unchanged
Run Code Online (Sandbox Code Playgroud)
但一切都没有改变.当我做
git push origin master --force
Run Code Online (Sandbox Code Playgroud)
它说
一切都是最新的
有谁知道我做错了什么?