# Identifying the commit ID from which a repo was cloned

2 messages from 2010-03-15 to 2010-03-15. Participants: jateeq, Chris Packham.
Thread: https://gitlist.dev/t/23029

## jateeq, 2010-03-15 21:06

Subject: Identifying the commit ID from which a repo was cloned
Message-ID: <27910384.post@talk.nabble.com>
URL: https://gitlist.dev/e/27910384.post%40talk.nabble.com

```

Hello,

Once I clone, make changes and commit several times, I need to determine how
many commits were made (and list them) since the repository was cloned. Does
git remember this commit, and is there a command that can do this, or do I
have to store the commit ID when i clone? 

Thank you,
Jawad
-- 
View this message in context: http://old.nabble.com/Identifying-the-commit-ID-from-which-a-repo-was-cloned-tp27910384p27910384.html
Sent from the git mailing list archive at Nabble.com.

```

## Chris Packham, 2010-03-15 22:32

Subject: Re: Identifying the commit ID from which a repo was cloned
Message-ID: <a038bef51003151532n320e7c1oeabfcb7da124f391@mail.gmail.com>
URL: https://gitlist.dev/e/a038bef51003151532n320e7c1oeabfcb7da124f391%40mail.gmail.com
In-Reply-To: <27910384.post@talk.nabble.com>

```
On Mon, Mar 15, 2010 at 2:06 PM, jateeq <jawad_atiq@hotmail.com> wrote:
>
> Hello,
>
> Once I clone, make changes and commit several times, I need to determine how
> many commits were made (and list them) since the repository was cloned. Does
> git remember this commit, and is there a command that can do this, or do I
> have to store the commit ID when i clone?
>
> Thank you,
> Jawad
> --
> View this message in context: http://old.nabble.com/Identifying-the-commit-ID-from-which-a-repo-was-cloned-tp27910384p27910384.html
> Sent from the git mailing list archive at Nabble.com.
>
> --

The origin/master reference is what you need. Pretty much the same
answer as one of your other questions
http://article.gmane.org/gmane.comp.version-control.git/141414

```
