We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222b167 commit 49bde75Copy full SHA for 49bde75
Documentation/git-filter-branch.txt
@@ -212,6 +212,11 @@ git filter-branch --index-filter 'git rm --cached filename' HEAD
212
213
Now, you will get the rewritten history saved in HEAD.
214
215
+As with using `rm filename`, `git rm --cached filename` will fail
216
+if the file is absent from the tree of a commit. If it is not important
217
+whether the file is already absent from the tree, you can use
218
+`git rm --cached --ignore-unmatch filename` instead.
219
+
220
To rewrite the repository to look as if `foodir/` had been its project
221
root, and discard all other history:
222
0 commit comments