git/git-prune-script

3 строки
135 B
Bash
Executable File

#!/bin/sh
fsck-cache --unreachable $(cat .git/HEAD ) | grep unreachable | cut -d' ' -f3 | sed 's:^\(..\):.git/objects/\1/:' | xargs rm