summaryrefslogtreecommitdiff
path: root/gitrmlf
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-06-25 14:47:35 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-06-25 14:47:35 +0800
commit75872eeadab8825bcad715970fb531990089853c (patch)
tree1f2930a9eef66773ad01062fed33914f6155ac75 /gitrmlf
parent3874bdd48618c1ffe89e0846a50a3a4a0ff15701 (diff)
gitrmlfs
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