dexterous
dexterous

Reputation: 6526

how to use git log and grep together?

I am trying to use git log and grep together with pipe. However, it doesn't seem to work. I am grepping for the bug-id from the git log. Here is what I am doing.

$git log | grep -ir "BUG-1024"

Upvotes: 1

Views: 2084

Answers (1)

Daniel Severo
Daniel Severo

Reputation: 1848

You can use git log --grep "BUG-1024"

Upvotes: 4

Related Questions