先查看某行代码由谁写的,在哪个commit中提交的:

gitblamefile_namegitblame-L58,100KeyboardActivity.java

其显示格式为:

commit ID | 代码提交作者 | 提交时间 | 代码位于文件中的行数 | 实际代码

类似于下面这样:

这样,我们就可以知道commit ID了,然后使用命令:Git show commitID来看~