从当前目录的所有文件中查找文本内容:
$ git grep "Hello"
在某一版本中搜索文本:
$ git grep "Hello" v2.5
Git常用命令速查03 - 搜索
原文:http://www.cnblogs.com/codingwhy/p/5037026.html