aboutsummaryrefslogtreecommitdiff
path: root/git-prune-script
blob: d0f19f19e2e5ea917bd2a8bf6214aa52fdc83bbc (plain)
1
2
#!/bin/sh
fsck-cache --unreachable $(cat .git/HEAD ) | grep unreachable | cut -d' ' -f3 | sed 's:^\(..\):.git/objects/\1/:' | xargs rm