From 5802f0e6d3f38891539211180ad9f7cf3944db76 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sat, 11 Jan 2020 14:29:06 +0100 Subject: [PATCH] add git cleaning --- data/git.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/data/git.md b/data/git.md index 3508bd3..4b73c10 100644 --- a/data/git.md +++ b/data/git.md @@ -115,6 +115,15 @@ Finally, you can clone this repo from your original. Gitlab requires more changes, such as going to `settings > repository` and switching the main branch, then stripping protection. +## Clean up Bloated Repo + +> git fsck --full + +> git gc --prune=now --aggressive + +> git repack + + ## Find Binary Blobs ```