#!/bin/sh # Delete EVERYTHING not reachable from a branch from the repository # # This expires the reflog as well! # # Usage: git gc-everything [] set -eu exec git \ -c gc.pruneExpire=now \ -c gc.reflogExpire=0 \ -c gc.reflogExpireUnreachable=0 \ -c gc.rerereresolved=0 \ -c gc.rerereunresolved=0 \ gc "$@"