[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: git log question
From: |
Noam Postavsky |
Subject: |
Re: git log question |
Date: |
Thu, 30 Nov 2017 09:59:22 -0500 |
On Thu, Nov 30, 2017 at 9:19 AM, Stephen Berman <address@hidden> wrote:
> I'm not sure what you mean by "reachable from a branch"; what I want is
> to find out whether a specific commit (identified by its hash) exists on
> the current branch -- not just whether it exists on some branch in the
> current repository -- and if so, to see that commit.
git doesn't really have branches like you are talking about, it just
has movable tags.
> That is, `git log' invoked with a specific commit will find that commit
> even when it's not on the current branch but on another branch in this
> repository, but it appears unable to say which branch it's on.
'git log <commit>' means "show all commits starting with <commit>
going backwards".
'git log' is just a short form for 'git log HEAD' (i.e., the commit
you are currently on).
- git log question, Stephen Berman, 2017/11/30
- Re: git log question, Mathias Megyei, 2017/11/30
- Re: git log question, Stephen Berman, 2017/11/30
- Re: git log question, Yuri Khan, 2017/11/30
- Re: git log question, Stephen Berman, 2017/11/30
- Re: git log question,
Noam Postavsky <=
- Re: git log question, Yuri Khan, 2017/11/30
- Re: git log question, Andreas Schwab, 2017/11/30
- Re: git log question, Kaushal Modi, 2017/11/30
- Re: git log question, Andreas Schwab, 2017/11/30
- Re: git log question, Noam Postavsky, 2017/11/30
- Re: git log question, Davis Herring, 2017/11/30
Re: git log question, Herring, Davis, 2017/11/30
Re: git log question, Eli Zaretskii, 2017/11/30