I made the mistake of upgrading a Visual Studio project from 2008 to 2010 without checking in my previous changes first. Because of this I have a huge system generated file (10k+ lines) that had every 4th line changed.
I’m usually pretty good about checking in stuff often, so I will typically just use the down key to scroll through my changes. In this case it will take several lifetimes to scroll through the changes to the system generated file.
Is there a way to skip to the next modified file after you have done a git diff so that you don’t have to scroll through every change on every file?
By default,
git diffpipes its output throughless. So you can use thelesscommands to search for the next header. Type/^diffand press Enter to skip to the next file.