Revisé otra rama con actualizaciones, luego hice algunos cambios, volví a cambiar al git principal y ¡ahora los cambios desaparecieron! ¿Puedo recuperarlos? el terminal era básicamente:¿Cómo recuperar el compromiso desde 'estado de cabeza separada'?
$ git commit
[detached HEAD 7c09e17] Fixed some stuff
files changed, insertions(+), deletions(-)
$ git push master
fatal: 'master' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
$ git checkout master
Previous HEAD position was 7c09e17... Fixed some stuff
Switched to branch 'master'
$ git merge theother/directory
dup de http://stackoverflow.com/questions/4845505/gitx-how-do-i-get-my-detached-head-commits-back-into-master? – smparkes