git-filter-branch: Clarify file removal example.
Signed-off-by: Jon Loeliger <jdl@jdl.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
a473445ac2
commit
e4d594c6bd
@ -177,6 +177,10 @@ or copyright violation) from all commits:
|
|||||||
git filter-branch --tree-filter 'rm filename' HEAD
|
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:
|
A significantly faster version:
|
||||||
|
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user