git/list[1] front-page[2] threads[3] people[4] search[5] about
 

checking out later commits from rolled back state

From
Pphotoshop_nerd <jbreuer@consumercredit.com>
Date
Nov 1, 2011, 14:36 UTC
Message-ID
<1320158207959-6951892.post@n2.nabble.com>

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?

-- View this message in context: http://git.661346.n2.nabble.com/checking-out-later-commits-from-rolled-back-state-tp6951892p6951892.html Sent from the git mailing list archive at Nabble.com.

Next: Alexey Shumkin
Message 1 of 3 in “checking out later commits from rolled back state”
  1. photoshop_nerdNov 1, 2011
  2. Alexey ShumkinNov 1, 2011
  3. Vincent van RavesteijnNov 1, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.