From: Vincent van Ravesteijn <vfr@lyx.org>
To: photoshop_nerd <JBreuer@consumercredit.com>
Cc: git@vger.kernel.org
Subject: Re: checking out later commits from rolled back state
Date: Tue, 01 Nov 2011 15:58:58 +0100 [thread overview]
Message-ID: <4EB00932.1090604@lyx.org> (raw)
In-Reply-To: <1320158207959-6951892.post@n2.nabble.com>
Op 1-11-2011 15:36, photoshop_nerd schreef:
> Hello, I a m relatively new to git, and my question pertains to moving back
> and forth through the history of my commits.
>
> Here is how I open a previous commit:
>
> 1)$ git log
>
> 2) (get sha1 hash of previous commit)
>
> 3)$ git checkout<hash of my previous commit>
>
> the problem is that once I am working with that commit, git log only shows
> the hash tags up to the time that the commit was made, but not any of the
> later commits. Is there a way to get the hash tags of my later commits when
> I am in that rolled back state?
>
If your are on branch 'master':
git log
git checkout <hash of previous commit>
then
"git log master" will show you the log from the tip of the master branch.
Vincent
prev parent reply other threads:[~2011-11-01 14:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-01 14:36 checking out later commits from rolled back state photoshop_nerd
2011-11-01 14:56 ` Alexey Shumkin
2011-11-01 14:58 ` Vincent van Ravesteijn [this message]
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=4EB00932.1090604@lyx.org \
--to=vfr@lyx.org \
--cc=JBreuer@consumercredit.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).