所謂的 poor solution
git log -p | grep <pattern>
能應(yīng)付絕大多數(shù)場(chǎng)景
git grep <regexp> $(git rev-list --all)
針對(duì) commit message
git log --grep=word
有點(diǎn)高級(jí)了
git log -Sword
// or
git log -Gword
StackOverflow 是好朋友
How to grep (search) committed code in the git history?
How to grep Git commit diffs or contents for a certain word?