Re: How can I search git log with ceratin keyword but without the other keyword?
- From
Carlo Arenas <carenas@gmail.com>
- Date
- Jul 22, 2020, 06:46 UTC
- Message-ID
- <CAPUEspjggE9w5EQcMaXeU75Jo0+s=bK09cb9fcUsU1J3ZAqKYw@mail.gmail.com>
- In-Reply-To
- <xmqqmu3u9itq.fsf@gitster.c.googlers.com>
On Mon, Jul 20, 2020 at 10:50 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 14 quoted lines
>
> Carlo Arenas <carenas@gmail.com> writes:
> > repository that looks like:
> >
> > $ git log --oneline
> > b1824b2 (HEAD -> master) second
> > 00d85f1 first
> > 68757c9 initial
> >
> > $ git log --oneline -n 1 HEAD@{1}
> > 00d85f1 first
>
> You meant HEAD~1, not the nth reflog entry (which does not have
> anything to do with the parenthood sequence between commits).indeed, thanks you; and for more documentation in the syntax of those "revisions" :
https://git-scm.com/docs/gitrevisions
Carlo