Git 无法删除敏感数据

Git 无法删除敏感数据,git,Git,我在从我的一个git代表中删除敏感数据时遇到问题。 我在阅读手册页,并按照说明逐一操作 起初,我成功地做到了这一点: $ git clone https://github.com/defunkt/github-gem.git 接下来,我成功地做到了这一点 $ cd github-gem 然后我尝试了下面的方法,但没有成功,得到了下面的信息 $ git filter-branch --index-filter 'git rm --cached --ignore-unmatch Rakefile

我在从我的一个git代表中删除敏感数据时遇到问题。 我在阅读手册页,并按照说明逐一操作

起初,我成功地做到了这一点:

$ git clone https://github.com/defunkt/github-gem.git
接下来,我成功地做到了这一点

$ cd github-gem
然后我尝试了下面的方法,但没有成功,得到了下面的信息

$ git filter-branch --index-filter 'git rm --cached --ignore-unmatch Rakefile' --prune-empty --tag-name-filter cat -- --all

fatal: ambigous argument 'rm': unknown revision or path not in the working tree. Use '--' to seperate paths from revisions
有人能帮忙吗?

我想即使使用了
--ignore unmatch
你仍然需要
--
消歧器。比如:

git rm --cached --ignore-unmatch -- Rakefile
                                 ^^-this two dashes here

我知道已经有一段时间了,但为了子孙后代:
我已经为这个问题争论了一段时间-Windows上的解决方案是使用“(双引号)而不是“(单引号)。

thx作为回复。我尝试过,但得到相同的错误消息:-(知道我正在使用Windows 7可能会有帮助)。