Skip to content

Commit 5952564

Browse files
committed
Fix order of git rm options
The `filter-branch` example errors out ('Unknown option ignore-unmatch') if the `--ignore-unmatch` flag does not come before the `--cached` flag.
1 parent 8b9e021 commit 5952564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/10-git-internals/sections/maintenance.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ To do so, you use `filter-branch`, which you used in <<_rewriting_history>>:
288288
[source,console]
289289
----
290290
$ git filter-branch --index-filter \
291-
'git rm --cached --ignore-unmatch git.tgz' -- 7b30847^..
291+
'git rm --ignore-unmatch --cached git.tgz' -- 7b30847^..
292292
Rewrite 7b30847d080183a1ab7d18fb202473b3096e9f34 (1/2)rm 'git.tgz'
293293
Rewrite dadf7258d699da2c8d89b09ef6670edb7d5f91b4 (2/2)
294294
Ref 'refs/heads/master' was rewritten

0 commit comments

Comments
 (0)