From: Duy Nguyen Date: Tue, 26 Feb 2013 14:57:36 GMT Subject: Re: [PATCH/RFC] Record original ref in detached HEAD Message-ID: In-Reply-To: On Tue, Feb 26, 2013 at 9:37 PM, Matthieu Moy wrote: > Nguyễn Thái Ngọc Duy 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