downmovies 发表于 2018-9-17 08:47:41

git小技巧:git blame && git show 查看某一行代码的修改历史

  先查看某行代码由谁写的,在哪个commit中提交的:
git blame file_name  
git blame -L 58,100 KeyboardActivity.java
  其显示格式为:

  commit>  类似于下面这样:



  这样,我们就可以知道commit>

页: [1]
查看完整版本: git小技巧:git blame && git show 查看某一行代码的修改历史