Created
July 9, 2021 05:55
-
-
Save huozhi/b354e635c5ddbae54205650288e9ca65 to your computer and use it in GitHub Desktop.
filter git pack files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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