Thread (1 message) 1 message, 1 author, 2016-06-15

Re: How to restore the original head after `git-reset --hard master^`

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:08

Ben Lau [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help