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
[alias] # find duplicate files from root alldupes = !"git ls-tree -r HEAD | cut -c 13- | sort | uniq -D -w 40" # find duplicate files from the current folder (can also be root) dupes = !"cd `pwd`/$GIT_PREFIX && git ls-tree -r HEAD | cut -c 13- | sort | uniq -D -w 40"