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
For Windows / PowerShell users:
git ls-tree -r HEAD | group { $_ -replace '.{12}(.{40}).*', '$1' } | ? { $_.Count -gt 1 } | select -expand Group
This outputs something like:
100644 blob 8a49bcbae578c405ba2596c06f46fabbbc331c64 filename1
100644 blob 8a49bcbae578c405ba2596c06f46fabbbc331c64 filename2
100644 blob c1720b20bb3ad5761c1afb6a3113fbc2ba94994e filename3
100644 blob c1720b20bb3ad5761c1afb6a3113fbc2ba94994e filename4