Skip to content
Advertisement

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"

Advertisement

Answer

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

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement