git-prune-scripton commit [PATCH] Make git-update-cache --refresh fail if update/merge needed. (9053521)
   1#!/bin/sh
   2git-fsck-cache --unreachable $(cat .git/HEAD ) | grep unreachable | cut -d' ' -f3 | sed 's:^\(..\):.git/objects/\1/:' | xargs rm