threads / discuss / 11426

How to find a commit containing a given sha1

Subject: How to find a commit containing a given sha1

## tl;dr

2 messages between Dec 30, 2007 and Dec 30, 2007.

replies: 1people: 2as markdown or json

Johannes Schindelin· Dec 30, 2007, 10:56 UTC · re: Ping Yin · lore

Re: How to find a commit containing a given sha1

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

← back to recent threads