This gist helps to find all the files of the same md5 in a folder
you can save the awk above as a executable on your path such as ~/.local/bin/find_dup
chmod +x ~/.local/bin/find_dup
then you can run the script below:
find . -type f -exec md5 -r {} \; | find_dup | jq -s
This assumes you are on mac with md5 instead of md5sum, and have jq installed.
Also recommmend fd, which is much faster and respect your .gitignore.
fd -tf -x md5 -r | find_dup | jq -s