mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-04 07:56:29 -05:00
Merge branch 'maint'
* maint: git-filter-branch: Clarify file removal example.
This commit is contained in:
@@ -183,6 +183,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:
|
||||
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user