From: Jonathan Nieder <jrnieder@gmail.com>
To: Mahesh Vaidya <forvaidya@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: recovering orphaned commit
Date: Tue, 29 Jun 2010 10:26:06 -0500 [thread overview]
Message-ID: <20100629152606.GA7202@burratino> (raw)
In-Reply-To: <AANLkTiks6yPfdTACQwZlqv8PPPEg3RYGMx1Q1PjT0nRu@mail.gmail.com>
Hi Mahesh,
Mahesh Vaidya wrote:
> 2899684ed173063354b7fe4f5ec7216e7d953e2c <-- HEAD ( say C1)
> 1ef67de1a0d6e97470a8c827d2989317600532ff ( say C2)
>
> To see file at C2 ; I have done git reset --hard C2
For the future, ‘git checkout C2’ might work better for this task.
Unlike ‘git reset’, it does not change where the current branch head
points, so when you’re done exploring you can get back to where you
were with ‘git checkout topic’ (where topic is the name of the branch
--- e.g., master).
> Now want go to C1 ; Ho do I Determine C1 using git command ?
git log -g HEAD
Hope that helps,
Jonathan
next prev parent reply other threads:[~2010-06-29 15:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-29 15:09 recovering orphaned commit Mahesh Vaidya
2010-06-29 15:17 ` Shawn O. Pearce
2010-06-29 15:24 ` Ramkumar Ramachandra
2010-06-29 15:26 ` Jonathan Nieder [this message]
2010-06-29 15:29 ` Wincent Colaiuta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100629152606.GA7202@burratino \
--to=jrnieder@gmail.com \
--cc=forvaidya@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).