Skip to content

Instantly share code, notes, and snippets.

@huozhi
Created July 9, 2021 05:55
Show Gist options
  • Save huozhi/b354e635c5ddbae54205650288e9ca65 to your computer and use it in GitHub Desktop.
Save huozhi/b354e635c5ddbae54205650288e9ca65 to your computer and use it in GitHub Desktop.
filter git pack files
git rev-list --objects --all \
| grep "$(git verify-pack -v .git/objects/pack/*.idx \
| sort -k 3 -n \
| tail -10 \
| awk '{print$1}')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment