From d45a6e3e91598fed2062b6bff0e18598ed9c60d2 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Fri, 9 Jun 2023 16:27:25 -0400 Subject: [PATCH] Add the --force flag to second filter-branch run since it will already have the backup by then. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 280c99e..86f8e41 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ $ git log --pretty=format: --name-status \ | sort -u > /tmp/tree.old $ git ls-tree -r --name-only HEAD > /tmp/tree.new $ git filter-branch \ + --force \ --prune-empty \ --index-filter ' grep -Fvxf /tmp/tree.new /tmp/tree.old \ -- 2.20.1