Re: How can I search git log with ceratin keyword but without the other keyword?
- From
Carlo Arenas <carenas@gmail.com>
- Date
- Jul 10, 2020, 08:14 UTC
- Message-ID
- <CAPUEspg=4HJL8iiNrNp9Wr9sVj5Gw_PciSezHV5iJ1w-ymdzdw@mail.gmail.com>
- In-Reply-To
- <CAAvDm6Z2HcQkyinCD4hKTnqGR3gcXodhoo0YKSnbB-vDJcn3MQ@mail.gmail.com>
it is easier to write specific "not match" using PCRE syntax, but there are several other options to choose from combining as many expressions as needed from the `git log` man page:
git log -P --all-match --grep '12' --grep '\b(?!t123\b)\w+'
Carlo