git diff to compare 2 folders and all files in them recursively code example Example: directory diff diff -qr dir1/ dir2/