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

Re: [PATCH/RFC] Record original ref in detached HEAD

From
Duy Nguyen <pclouds@gmail.com>
Date
Feb 26, 2013, 14:57 UTC
Message-ID
<CACsJy8BJqoCVHm=jY+Y6LB_aKuyE5HsGA=eHmYur-Lfrp+PE4A@mail.gmail.com>
In-Reply-To
<vpqsj4jqgy4.fsf@grenoble-inp.fr>

On Tue, Feb 26, 2013 at 9:37 PM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:

Show 12 quoted lines
> Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
>
>> Many times I checkout a remote branch, or a tag and after a while I
>> forget remember what ref I checked it out from. Saving the original
>> ref would help (or is it already saved somewhere?).
>
> It is :-). Try e.g.
>
>   git checkout --detach
>   git checkout -
>
> (analogous to "cd -": return back to where you were before)

Yeah. I always manage to forget reflog when I need it. Time to show the information in "git branch", oh wait I still have a wip about git-branch on pu..

-- 
Duy
Previous: Matthieu Moy
Message 3 of 3 in “Record original ref in detached HEAD”
  1. Record original ref in detached HEADNguyễn Thái Ngọc Duy, Feb 26, 2013
  2. Matthieu MoyFeb 26, 2013
  3. Duy NguyenFeb 26, 2013

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.