threads / discuss / 23029

Identifying the commit ID from which a repo was cloned

Subject: Identifying the commit ID from which a repo was cloned

## tl;dr

2 messages between Mar 15, 2010 and Mar 15, 2010.

replies: 1people: 2as markdown or json

jateeq· Mar 15, 2010, 21:06 UTC · lore
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· Mar 15, 2010, 22:32 UTC · re: jateeq · lore

Re: Identifying the commit ID from which a repo was cloned

On Mon, Mar 15, 2010 at 2:06 PM, jateeq <jawad_atiq@hotmail.com> wrote:
Show 15 quoted lines
>
> 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

← back to recent threads