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)

Matthieu Moy
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to