From: Junio C Hamano <junkio@cox.net>
To: Ben Lau <benlau@ust.hk>
Cc: git@vger.kernel.org
Subject: Re: How to restore the original head after `git-reset --hard master^`
Date: Tue, 11 Oct 2005 14:37:40 -0700 [thread overview]
Message-ID: <7vpsqbspjv.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <434BD65A.9000108@ust.hk> (Ben Lau's message of "Tue, 11 Oct 2005 23:12:26 +0800")
Ben Lau <benlau@ust.hk> writes:
> 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.
I think you can find it in .git/ORIG_HEAD.
prev parent reply other threads:[~2005-10-11 21:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=7vpsqbspjv.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=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 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).