无法删除敏感数据 [英] Could not remove sensitive data

查看:107
本文介绍了无法删除敏感数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从一个git代表中删除敏感数据时遇到问题。
我阅读 https://help.github.com/articles上的手册页/删除敏感数据,并按照指示逐一执行。



起初,我成功完成了这项工作:

  $ 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 -   - 所有

致命:ambigous argument'rm':未知版本或路径不在工作树中。使用' - '分隔修订版本中的路径

有人可以帮忙吗?

$ b $我知道这已经有一段时间了,但为了后人的缘故:
我在这个问题上争论了一段时间 - Windows上的解决方案是使用(双引号)而不是'(单引号)。


I have a problem with removing sensitive data from one of my git reps. I read the man page at https://help.github.com/articles/remove-sensitive-data and followed the instructions one by one.

at first I did this with success:

$ git clone https://github.com/defunkt/github-gem.git

next I did this with succes

$ cd github-gem

and then I tried the following with no success and got the following message

$ 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

Could someone help?

解决方案

I know it's been a while, but for posterity's sake: I fought with this issue for a while now - the solution on Windows is to use " (double quote) instead of ' (single quote).

这篇关于无法删除敏感数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆