Skip to content

Commit e4d594c

Browse files
Jon Loeligergitster
authored andcommitted
git-filter-branch: Clarify file removal example.
Signed-off-by: Jon Loeliger <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a473445 commit e4d594c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/git-filter-branch.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ or copyright violation) from all commits:
177177
git filter-branch --tree-filter 'rm filename' HEAD
178178
-------------------------------------------------------
179179

180+
However, if the file is absent from the tree of some commit,
181+
a simple `rm filename` will fail for that tree and commit.
182+
Thus you may instead want to use `rm -f filename` as the script.
183+
180184
A significantly faster version:
181185

182186
--------------------------------------------------------------------------

0 commit comments

Comments
 (0)