skip to content
Alvin Lucillo

Diff files only

/ 1 min read

💻 Tech

To list just the files that have changes (i.e., modified, deleted, and added), you can use git diff --name-only. Without --name-only, the files and the difference between the original and modified versions are shown. Listing just the file would be useful when determining affected files without knowing the full details.