Re: checking out later commits from rolled back state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]