Notice: Trying to access array offset on value of type bool in /home/mentep/web/menteprincipiante.com/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
Mi ordenador se ha estropeado y ahora uno de mis repositorios git está roto. Cuando trato de checkout master me dice:
warning: ignoring broken ref refs/heads/master. error: Your local changes to the following files would be overwritten by checkout: com.vainolo.jdraw2d.releng.p2/pom.xml Please, commit your changes or stash them before you can switch branches. Aborting
Cuando ejecuto git stash obtengo:
fatal: bad revision 'HEAD'
fatal: bad revision 'HEAD'
fatal: Needed a single revision
You do not have the initial commit yets
Entonces… ¿qué puedo hacer?
ACTUALIZACIÓN: Salida de
git reflog
:
fatal: bad default revision 'HEAD'
No es muy prometedor… Salida de
git fsck
:
error: Invalid HEAD
Checking object directories: 100% (256/256), done.
error: unable to unpack 59551f96b4e87a1c14293c19eb548ce6fa1f196f header
error: inflateEnd: stream consistency error (no message)
fatal: loose object 59551f96b4e87a1c14293c19eb548ce6fa1f196f (stored in .git/objects/59/551f96b4e87a1c14293c19eb548ce6fa1f196f) is corrupt
1 respuestas
Me las arreglé para recuperarme:
rm .git/refs/remotes/origin/HEAD
git fetch --all
Tu respuesta