From: Oleg Broytman Date: Sat, 3 Feb 2018 03:30:05 +0000 (+0300) Subject: Add gc-expire scripts X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d620650e20051859359c8bb1ec26c122261af652;p=git-scripts.git Add gc-expire scripts --- diff --git a/gc-expire b/gc-expire new file mode 100755 index 0000000..13f8a41 --- /dev/null +++ b/gc-expire @@ -0,0 +1,4 @@ +#! /bin/sh + +git reflog expire --expire=now --all && +exec git gc --aggressive --prune=now diff --git a/gc-expire-repack b/gc-expire-repack new file mode 100755 index 0000000..333bb6c --- /dev/null +++ b/gc-expire-repack @@ -0,0 +1,8 @@ +#! /bin/sh + +git reflog expire --expire=now --all && +git gc --aggressive --prune=now && + +git reflog expire --expire-unreachable=0 --all && +git repack -A -d && +exec git prune