git grepはみなさん使ってますか?

基本は git grep {pattern} という形式で{pattern}でgit管理化をgrepできます:

~/repos/yassu.gitlab.io$ git grep linux
_posts/2017-08-27-rename.md:- linux
_posts/2017-08-27-sed.md:categories: linux command sed
_posts/2017-08-27-sed.md:- linux
_posts/2020-01-15-install-cvxopt.markdown:- linux
_posts/2020-01-17-git-push-origin-head.markdown:- linux

git grep -e {pattern}{pattern}の正規表現でgrepすることができます:

~/repos/yassu.gitlab.io$ git grep -e "\babc\b"
_posts/2018-02-01-commit-msg.md:yassu@test $ touch abc
_posts/2018-02-01-commit-msg.md:yassu@test $ git add abc
_posts/2018-02-01-commit-msg.md:        new file:   abc
_posts/2018-02-01-commit-msg.md: create mode 100644 abc