Skip to content

Commit

Permalink
git: slow command to improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
andys8 committed Jan 20, 2025
1 parent b2d1fb9 commit 1e22b16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/git-slow
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
# Improve performance of large, slow git repositories

git gc --aggressive --prune=now
git repack -a -d
git fsck --full

0 comments on commit 1e22b16

Please sign in to comment.