Skip to next modified file in git diff?
By default, git diff
pipes its output through less
. So you can use the less
commands to search for the next header. Type /^diff
and press Enter to skip to the next file.
While in git diff
, simply hit n to go straight to the next file, and again to the one afterwards, and so on.
You can also use N to go back a file.
(For these commands to work, you'll need to first type /^diff
and press Enter, as explained in this answer.)