From 75872eeadab8825bcad715970fb531990089853c Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 25 Jun 2023 14:47:35 +0800 Subject: gitrmlfs --- gitrmlf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 gitrmlf (limited to 'gitrmlf') 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 -- cgit v1.2.3