git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Recovering Committed Changes in a Detached Head?
@ 2011-10-08 20:58 Daly Gutierrez
  2011-10-08 21:37 ` SZEDER Gábor
  0 siblings, 1 reply; 10+ messages in thread
From: Daly Gutierrez @ 2011-10-08 20:58 UTC (permalink / raw)
  To: git

Is this possible after changing from the Detached Head branch to an
existing branch?  How about if I don't remember the commit SHA1 ID?

What I did, to the best of my knowledge:
1) Checked out a previous version:
> git checkout 3a5bb38a83c00f7acab573f0ec836577143200aa

2) Modified file and committed the changes in the detached branch.
> git log
 commit 92aa5381b9f7229523dba42aa94735c30f173451
 Author: Daly Gutierrez <Daly.Gutierrez@gmail.com>
 Date:   Sat Oct 8 16:20:11 2011 -0400

    Committing this in the Detached Head

3) For curiosity,
> git branch
* (no branch)
  New_Branch
  Second_New_Branch
  master

4) Changed to 'New_Branch' branch...  I no longer see the detached
branch...
 > git branch
* New_Branch
  Second_New_Branch
  master

5) Want to access the file with the changes I made in the Detached
branch, but don't know how...  PLEASE HELP?

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

end of thread, other threads:[~2011-10-10  1:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-08 20:58 Recovering Committed Changes in a Detached Head? Daly Gutierrez
2011-10-08 21:37 ` SZEDER Gábor
2011-10-08 22:00   ` Martin Fick
2011-10-09  3:32     ` Joel C. Salomon
2011-10-09  5:39       ` Martin Fick
2011-10-09  5:52     ` Nguyen Thai Ngoc Duy
2011-10-09  7:46       ` Ronan Keryell
2011-10-09  8:12     ` Matthieu Moy
2011-10-09 23:22     ` Junio C Hamano
2011-10-10  1:26       ` Miles Bader

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