summaryrefslogtreecommitdiff
path: root/gitrmlf
diff options
context:
space:
mode:
Diffstat (limited to 'gitrmlf')
-rwxr-xr-xgitrmlf7
1 files changed, 7 insertions, 0 deletions
diff --git a/gitrmlf b/gitrmlf
new file mode 100755
index 0000000..e5a79e1
--- /dev/null
+++ b/gitrmlf
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+git filter-branch --force --index-filter \
+ "git rm --cached --ignore-unmatch $@" \
+ --prune-empty --tag-name-filter cat -- --all
+
+ git filter-branch --force --index-filter "git rm --cached --ignore-unmatch $@" --prune-empty --tag-name-filter cat -- --all