Re: [PATCH/RFC] Record original ref in detached HEAD
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Feb 26, 2013, 14:37 UTC
- Message-ID
- <vpqsj4jqgy4.fsf@grenoble-inp.fr>
- In-Reply-To
- <1361888897-1821-1-git-send-email-pclouds@gmail.com>
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)
-- Matthieu Moy http://www-verimag.imag.fr/~moy/