Chinaunix首页 | 论坛 | 博客
  • 博客访问: 542596
  • 博文数量: 203
  • 博客积分: 245
  • 博客等级: 二等列兵
  • 技术积分: 1288
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-16 10:29
文章分类

全部博文(203)

文章存档

2023年(4)

2022年(21)

2021年(7)

2020年(5)

2019年(1)

2018年(6)

2017年(11)

2016年(15)

2015年(52)

2014年(37)

2013年(26)

2012年(18)

我的朋友

分类: LINUX

2017-08-28 10:37:53

http://blog.csdn.net/robertsong2004/article/details/46892047

If you know the contents of the line, this is an ideal use case for:
git log -S path/to/file
which shows you commits which introduce or remove an instance of that string. There's also the -G which does the same thing with regular expressions! See man Git-log and search for the -G and -S options, or pickaxe (the friendly name for these features) for more information.
The -S option is actually mentioned in the header of the git-blame manpage too, in the description section, where it gives an example using git log -S....
阅读(741) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~