Recovering Committed Changes in a Detached Head?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
 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?

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]