git diff is a powerful command that shows changes between two commits, a commit and the working tree, and more. Sometimes, you may want to limit the output of git diff to only specific types of files. You can achieve this using the -- '*.file_extension' syntax or -- ./*.file_extension.