在整个版本库中搜索
git grep "pattern" 是「其他实用命令」分类下的常用命令,作用是:在整个版本库中搜索。
git grep "pattern"
典型用法如下:git grep "TODO"。你可以查看本页上方同组的相关命令,或直接复制到终端运行。
git grep "TODO"