我错误地将Visual Studio项目从2008升级到2010而没有先检查我以前的更改.因此,我有一个巨大的系统生成文件(10k +行),每4行更改一次.
我通常非常擅长检查内容,所以我通常只使用向下键来滚动我的更改.在这种情况下,滚动更改系统生成的文件需要几个生命周期.
有没有办法在完成后跳到下一个修改过的文件,git diff这样就不必滚动每个文件的每个更改?
Gre*_*ill 58
默认情况下,git diff通过管道输出less.因此,您可以使用less命令搜索下一个标题.输入/^diff并按Enter以跳至下一个文件.
对于其他有用的命令,请键入h帮助(在中时git diff,在中时less)。
特别是:
JUMPING
g < ESC-< * Go to first line in file (or line N).
G > ESC-> * Go to last line in file (or line N).
p % * Go to beginning of file (or N percent into file).
t * Go to the (N-th) next tag.
T * Go to the (N-th) previous tag.
{ ( [ * Find close bracket } ) ].
} ) ] * Find open bracket { ( [.
ESC-^F <c1> <c2> * Find close bracket <c2>.
ESC-^B <c1> <c2> * Find open bracket <c1>
Run Code Online (Sandbox Code Playgroud)