git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* can git reset or checkout be reverted?
@ 2009-02-06 14:19 bill lam
  2009-02-06 14:43 ` Matthieu Moy
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: bill lam @ 2009-02-06 14:19 UTC (permalink / raw)
  To: git

If I want to recall a old version of testing by

git reset --hard sha1
or
git checkout sha1

then git log does not show anything beyond that commit. It does give
some warning and recommend -b switch next time.  If I only do that by
accident or ignorance.  How to revert to the original HEAD?

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩274 韓翃  寒食
    春城無處不飛花  寒食東風御柳斜  日暮漢宮傳蠟燭  輕煙散入五侯家

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-02-07  5:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06 14:19 can git reset or checkout be reverted? bill lam
2009-02-06 14:43 ` Matthieu Moy
2009-02-06 14:47 ` Jakub Narebski
2009-02-06 16:03 ` Sitaram Chamarty
2009-02-07  5:31   ` bill lam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).