I wanted to find the 10 largest files in my repository. The script I came up with is as follows:
REP_HOME_DIR= max_huge_files=
How about
git ls-files | xargs ls -l | sort -nrk5 | head -n 10
git ls-files
xargs ls -l
ls -l
sort -nrk5
head -n 10