All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Lau <benlau@ust.hk>
To: git@vger.kernel.org
Subject: How to restore the original head after `git-reset --hard master^`
Date: Tue, 11 Oct 2005 23:12:26 +0800	[thread overview]
Message-ID: <434BD65A.9000108@ust.hk> (raw)

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

             reply	other threads:[~2005-10-11 15:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-11 15:12 Ben Lau [this message]
2005-10-11 15:59 ` How to restore the original head after `git-reset --hard master^` Linus Torvalds
2005-10-11 16:58   ` Daniel Barkalow
2005-10-11 17:04     ` Linus Torvalds
2005-10-11 21:37 ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=434BD65A.9000108@ust.hk \
    --to=benlau@ust.hk \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.