git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* How can I search git log with ceratin keyword but without the other keyword?
@ 2020-07-10  4:31 孙世龙 sunshilong
  2020-07-10  8:14 ` Carlo Arenas
  0 siblings, 1 reply; 17+ messages in thread
From: 孙世龙 sunshilong @ 2020-07-10  4:31 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <BYAPR21MB11587632058438090FE265B8E0DA9@BYAPR21MB1158.namprd21.prod.outlook.com>]

end of thread, other threads:[~2020-12-27 23:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-10  4:31 How can I search git log with ceratin keyword but without the other keyword? 孙世龙 sunshilong
2020-07-10  8:14 ` Carlo Arenas
2020-07-11  5:48   ` 孙世龙 sunshilong
2020-07-16 15:31     ` Jeff King
2020-07-17  1:45       ` 孙世龙 sunshilong
2020-07-17  6:33         ` Jeff King
2020-07-17  7:45           ` Junio C Hamano
2020-07-17 10:19             ` Junio C Hamano
2020-07-18  4:51               ` 孙世龙 sunshilong
2020-07-18 18:07                 ` Junio C Hamano
2020-07-19  5:28                   ` 孙世龙 sunshilong
2020-07-19  8:26                     ` Carlo Arenas
2020-07-20 17:50                       ` Junio C Hamano
2020-07-22  6:46                         ` Carlo Arenas
2020-07-17 10:27             ` 孙世龙 sunshilong
2020-07-17 10:42           ` 孙世龙 sunshilong
     [not found] <BYAPR21MB11587632058438090FE265B8E0DA9@BYAPR21MB1158.namprd21.prod.outlook.com>
2020-12-27 23:45 ` Dan Moseley

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).