This is sort of a follow-up to this question.
If there are multiple blobs with the same contents, they are only stored once in the git repository because their SHA-1\'s
Just made a one-liner that highlights the duplicates rendered by git ls-tree. Might be useful
ls-tree
git ls-tree -r HEAD | sort -t ' ' -k 3 | perl -ne '$1 && / $1\t/ && print "\e[0;31m" ; / ([0-9a-f]{40})\t/; print "$_\e[0m"'