# Finding list of commit object

2 messages from 2012-03-26 to 2012-03-26. Participants: Anjib Mulepati, Shawn Pearce.
Thread: https://gitlist.dev/t/30063

## Anjib Mulepati, 2012-03-26 15:22

Subject: Finding list of commit object
Message-ID: <BLU0-SMTP344C6638261C23F2023DD72B1450@phx.gbl>
URL: https://gitlist.dev/e/BLU0-SMTP344C6638261C23F2023DD72B1450%40phx.gbl

```
Hi All,

I was doing some research on git objects. I understand that each object 
is represented with hash code and we can find the type of object with 
git cat command. I was wondering is there any command we can give to 
find the list of commit object (or any other object type) in current 
project without doing cat on each and every object inside .git/objects/

Thanks,
Anjib

```

## Shawn Pearce, 2012-03-26 16:03

Subject: Re: Finding list of commit object
Message-ID: <CAJo=hJsjRLZ4H7HU1DZrNSX5ouP73BJUkxtQm_7HaV8Xg07zzg@mail.gmail.com>
URL: https://gitlist.dev/e/CAJo%3DhJsjRLZ4H7HU1DZrNSX5ouP73BJUkxtQm_7HaV8Xg07zzg%40mail.gmail.com
In-Reply-To: <BLU0-SMTP344C6638261C23F2023DD72B1450@phx.gbl>

```
On Mon, Mar 26, 2012 at 08:22, Anjib Mulepati <anjibcs@hotmail.com> wrote:
> I was doing some research on git objects. I understand that each object is
> represented with hash code and we can find the type of object with git cat
> command. I was wondering is there any command we can give to find the list
> of commit object (or any other object type) in current project without doing
> cat on each and every object inside .git/objects/

git rev-list --all

That will list all commits, starting from each current branch or tag
and walking backwards through history.

```
