unixorn/git-extra-commands

View on GitHub
bin/git-compact

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash
#
# Compact a git repo

git reflog expire --expire=now --all
git gc --prune=now
git gc --aggressive --prune=now