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

Re: git-rebase and reflog

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Apr 30, 2008, 17:05 UTC
Message-ID
<4818A6CA.5000409@nrlssc.navy.mil>
In-Reply-To
<46dff0320804300956x7e4f34efle39f6cad2e98a2de@mail.gmail.com>
Ping Yin wrote:
> If your are right, how can i look over the branch reflog. I know the
> master@{1} syntax, but i want to see master@{1}, master@{2} until
> master@{n} in a single command just as how 'git reflog' shows HEAD@{1}
>  to HEAD@{n}.
Have you checked the documentation for 'git reflog'?
It says:
   The subcommand "show" (which is also the default, in the absence of any
   subcommands) will take all the normal log options, and show the log of
   the reference provided in the command-line (or `HEAD`, by default).
So, 'git reflog show master' should get you what you want.

You may also want to check out the '-g' option to git-log. For example, 'git log -g master'.

-brandon
Previous: Ping YinNext: Ping Yin
Message 4 of 8 in “git-rebase and reflog”
  1. Ping YinApr 30, 2008
  2. Jakub NarebskiApr 30, 2008
  3. Ping YinApr 30, 2008
  4. Brandon CaseyApr 30, 2008
  5. Ping YinApr 30, 2008
  6. Avery PennarunApr 30, 2008
  7. Junio C HamanoApr 30, 2008
  8. Ping YinApr 30, 2008

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.