How can I search git log with ceratin keyword but without the other keyword?
- From
- 孙世龙 sunshilong <sunshilong369@gmail.com>
- Date
- Jul 10, 2020, 04:31 UTC
- Message-ID
- <CAAvDm6Z2HcQkyinCD4hKTnqGR3gcXodhoo0YKSnbB-vDJcn3MQ@mail.gmail.com>
Hi, list
How can I search git log with ceratin keyword_a but without keyword_b?
Assume I have a branch master with 3 commits, the comments are t123, b1 and b12 separately, that is: b90b03f (HEAD -> master) b12 27f7577 b1 7268b40 t123
And now, I want to use git log --grep to search the log with the keyword "12" but without t123. The result I want is b90b03f b12
How can I achieve this?
Thank you for your attention to this matter.