From 4278d9bc05119c59a6995ee594a17f395e441533 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Tue, 16 Apr 2019 19:58:29 +0200 Subject: [PATCH] fix shell commands --- content/posts/removing-files-from-git-history.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/posts/removing-files-from-git-history.md b/content/posts/removing-files-from-git-history.md index 472340c..9ec03d4 100644 --- a/content/posts/removing-files-from-git-history.md +++ b/content/posts/removing-files-from-git-history.md @@ -23,11 +23,15 @@ Just following the steps described on their [landing page](https://rtyley.github If you still are just in the "experimenting" phase to see which space decrease one can archive with which file size filter (or which files you want to purge by removing them from master before running the tool), I recommend to swap the step -> git reflog expire --expire=now --all && git gc --prune=now --aggressive +{{< highlight bash >}} +git reflog expire --expire=now --all && git gc --prune=now --aggressive +{{< / highlight >}} with just -> git reflog expire --expire=now --all && git gc --prune=now +{{< highlight bash >}} +git reflog expire --expire=now --all && git gc --prune=now +{{< / highlight >}} to not wait potential hours for the aggressive GC. For me that was good enough to get some estimate of the later size for my experiments before I settled to some final settings and did the real run.