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>
Petr Baudis committed
Jul 23, 2008 at 00:24 UTC
eb72a51407228c8c7947e762d4f1c320712c9052
1 file changed
+1
-1
Documentation/git-filter-branch.txt
+1
-1
@@ -191,7 +191,7 @@ Thus you may instead want to use `rm -f filename` as the script.
191
A significantly faster version:
192
193
--------------------------------------------------------------------------
194
-git filter-branch --index-filter 'git update-index --remove filename' HEAD
194
+git filter-branch --index-filter 'git rm --cached filename' HEAD
195
--------------------------------------------------------------------------
196
197
Now, you will get the rewritten history saved in HEAD.