我在删除我的一个git代表的敏感数据时遇到了问题。我阅读了https://help.github.com/articles/remove-sensitive-data的手册页,并一个接一个地按照说明进行操作。
起初,我成功地做到了这一点:
$ git clone https://github.com/defunkt/github-gem.git接下来,我用succes做了这件事
$ 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有人能帮帮忙吗?
发布于 2013-11-12 06:28:37
我知道这已经有一段时间了,但为了后人着想:我已经和这个问题斗争了一段时间了- Windows上的解决方案是使用“(双引号)而不是‘(单引号)。
发布于 2012-11-01 21:07:25
我认为即使使用--ignore-unmatch,您仍然需要--消歧工具。像这样:
git rm --cached --ignore-unmatch -- Rakefile
^^-this two dashes herehttps://stackoverflow.com/questions/13177493
复制相似问题