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