在testing分支合并代码时, 电脑突然蓝屏; 导致sourceTree中的本地分支全部消失;
最终解决方案:? 检出一个本地没有的远程分支
(神奇的事情是当检出一个本地没有的远程分支之后, 之前的本地分支都恢复了)
问题处理过程记录:
1. 想查看在哪个分支失败
$ git branch fatal: Failed to resolve HEAD as a valid ref.
2. 想重新检出失败
$ git checkout testing warning: ignoring broken ref refs/heads/testing fatal: cannot lock ref 'refs/heads/testing': unable to resolve reference 'refs/heads/testing': reference broken
3. git fsck 失败
$ git fsck --full
$ git fsck Checking object directories: 100% (256/256), done. Checking objects: 100% (90350/90350), done. error: refs/heads/testing: invalid sha1 pointer 0000000000000000000000000000000000000000 error: invalid HEAD error: bad ref for ./logs/HEAD error: bad ref for ./logs/refs/heads/testing ?
|