Skip to content

Commit

Permalink
git-filter-branch: Clarify file removal example.
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Loeliger <jdl@jdl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jon Loeliger authored and Junio C Hamano committed May 16, 2008
1 parent a473445 commit e4d594c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Documentation/git-filter-branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ or copyright violation) from all commits:
git filter-branch --tree-filter 'rm filename' HEAD
-------------------------------------------------------

However, if the file is absent from the tree of some commit,
a simple `rm filename` will fail for that tree and commit.
Thus you may instead want to use `rm -f filename` as the script.

A significantly faster version:

--------------------------------------------------------------------------
Expand Down

0 comments on commit e4d594c

Please sign in to comment.