Ответ 1
git log --grep=<pattern>
Limit the commits output to ones with log message that matches the
specified pattern (regular expression).
Возможный дубликат:
Как выполнить поиск всех коммитов в репозитории?
Есть ли способ поиска заголовков коммита с помощью командной строки?
git log --grep=<pattern>
Limit the commits output to ones with log message that matches the
specified pattern (regular expression).
git log --oneline | grep PATTERN