How to find a commit containing a given sha1

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

How to find a commit containing a given sha1

From: Ping Yin <hidden>
Date: 2016-06-15 22:44:01

Given a blob sha1, is there a simple way to find which file it
corresponds to and which commit it is contained?

-- 
Ping Yin

Re: How to find a commit containing a given sha1

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:01

Hi,

On Sun, 30 Dec 2007, Ping Yin wrote:
Given a blob sha1, is there a simple way to find which file it 
corresponds to and which commit it is contained?
Yes.  "git log --raw --abbrev=40 --all" and then search for the blob name 
(SHA-1).

Hth,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help