git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to restore the original head after `git-reset --hard master^`
@ 2005-10-11 15:12 Ben Lau
  2005-10-11 15:59 ` Linus Torvalds
  2005-10-11 21:37 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Ben Lau @ 2005-10-11 15:12 UTC (permalink / raw)
  To: git

Hi all,

   After involves the command `git-reset --hard master^` in a 
repository, the working
tree , current head and index are restored to the parent of master. That 
includes
the content of '.git/refs/head/master'. Although the original commit 
object is still existed
, I couldn't find it back.

  Is there anyway to recover the original master branch ? or I have to 
restore the branch
manually by finding out all the child of current head? If that is the 
solution , what command
could provide this information?

Thanks

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

end of thread, other threads:[~2005-10-11 21:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-11 15:12 How to restore the original head after `git-reset --hard master^` Ben Lau
2005-10-11 15:59 ` Linus Torvalds
2005-10-11 16:58   ` Daniel Barkalow
2005-10-11 17:04     ` Linus Torvalds
2005-10-11 21:37 ` Junio C Hamano

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).