mirror of
https://github.com/git/git.git
synced 2024-11-20 08:53:57 +01:00
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>
This commit is contained in:
parent
f9bbefc701
commit
eb72a51407
@ -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…
Reference in New Issue
Block a user