diff options
Diffstat (limited to 'git-prune-script')
-rwxr-xr-x | git-prune-script | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-prune-script b/git-prune-script new file mode 100755 index 0000000000..d0f19f19e2 --- /dev/null +++ b/git-prune-script @@ -0,0 +1,2 @@ +#!/bin/sh +fsck-cache --unreachable $(cat .git/HEAD ) | grep unreachable | cut -d' ' -f3 | sed 's:^\(..\):.git/objects/\1/:' | xargs rm |