Created
June 18, 2023 07:34
-
-
Save trdthg/defd4c9e4044f3f379f47fee2a31d013 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
LISTS=$(git verify-pack -v .git/objects/pack/pack-*.idx | sort -k 3 -g | tail -5) | |
for item in ${LISTS}; do | |
if [ $(expr length ${item}) -eq 40 ]; then | |
git rev-list --objects --all | grep ${item} | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment