在使用stash时,因操作错误,把整个库删除了,后用文件恢复,还原后,报错.
Detached heads are not currently supported
解决方法:原来是库的HEAD文件内容错误.head内容乱码,修改为以下内容就可以了.
ref: refs/heads/master
本文共 197 字,大约阅读时间需要 1 分钟。
在使用stash时,因操作错误,把整个库删除了,后用文件恢复,还原后,报错.
Detached heads are not currently supported
解决方法:原来是库的HEAD文件内容错误.head内容乱码,修改为以下内容就可以了.
ref: refs/heads/master
转载于:https://my.oschina.net/fengyie007/blog/105745