git pull报错,提示:
$ git pull
fatal: unable to read tree 9c2e59f24e3c83886b7456a8c6fac742324b8ccc
Updating 355ae012..06ebea1a
解决办法:
1、先查看所有远程仓库地址:git remote -v
$ git remote -v
myvesta https://github.comchatphp/chatphp/**.git (fetch)
myvesta https://github.com/chatphp/**.git (push)
origin [email protected]:chatphp/**.git (fetch)
origin [email protected]:chatphp/**.git (push)
2、删除.git文件夹:rm .git -rf
3、然后再按照本站的《本地项目使用远程git仓库更新》进行恢复。