From 66276562b9f1d951a243c6a78030251211f58cde Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 26 Jan 2024 18:12:39 +0800 Subject: [PATCH] feat: gitgc --- Justfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Justfile b/Justfile index a035a00a..d3f1524b 100644 --- a/Justfile +++ b/Justfile @@ -51,6 +51,10 @@ gc: sudo nix store gc --debug sudo nix-collect-garbage --delete-old +gitgc: + git reflog expire --expire-unreachable=now --all + git gc --prune=now + ############################################################################ # # Darwin related commands, harmonica is my macbook pro's hostname