Failed to delete sensitive data.

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

I did it first 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 without success and received 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 

Can anyone help?

+4
source share
2 answers

I know that it was a while, but for the sake of posterity: I struggled with this problem for a while - the solution on Windows should use "(double quote) instead" (single quote).

+2
source

I think that even with --ignore-unmatch you still need a disambiguator -- . How:

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

Source: https://habr.com/ru/post/1443436/


All Articles