1. Stefan Saasen
  2. git


Jon Loeliger  committed e4d594c

git-filter-branch: Clarify file removal example.

Signed-off-by: Jon Loeliger <jdl@jdl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

  • Participants
  • Parent commits a473445
  • Branches master

Comments (0)

Files changed (1)

File Documentation/git-filter-branch.txt

View file
  • Ignore whitespace
 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: