Browse Source

Documentation/git-filter-branch: teach "rm" instead of "update-index --remove"

The example to remove paths using index-filter was done with
"git update-index --remove"; "git rm --cached" would be more familiar to
new people and is sufficient for this particular case.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Petr Baudis 17 years ago committed by Junio C Hamano
parent
commit
eb72a51407
  1. 2
      Documentation/git-filter-branch.txt

2
Documentation/git-filter-branch.txt

@ -191,7 +191,7 @@ Thus you may instead want to use `rm -f filename` as the script. @@ -191,7 +191,7 @@ Thus you may instead want to use `rm -f filename` as the script.
A significantly faster version:

--------------------------------------------------------------------------
git filter-branch --index-filter 'git update-index --remove filename' HEAD
git filter-branch --index-filter 'git rm --cached filename' HEAD
--------------------------------------------------------------------------

Now, you will get the rewritten history saved in HEAD.

Loading…
Cancel
Save