码迷,mamicode.com
首页 > 其他好文 > 详细

git 错误 fatal: loose object...is corrupt

时间:2014-12-02 13:35:31      阅读:361      评论:0      收藏:0      [点我收藏+]

标签:git   object   branch   

错误描述:

error: object file .git/objects/9a/83e9c5b3d697d12a2e315e1777ceaf27ea1bab is empty
fatal: loose object 9a83e9c5b3d697d12a2e315e1777ceaf27ea1bab (stored in .git/objects/9a/83e9c5b3d697d12a2e315e1777ceaf27ea1bab) is corrupt


解决方法:

$ rm -fr .git
$ git init
$ git remote add origin your-git-remote-url
$ git fetch
$ git reset --hard origin/master
$ git branch --set-upstream-to=origin/master master 





git 错误 fatal: loose object...is corrupt

标签:git   object   branch   

原文地址:http://blog.csdn.net/windeal3203/article/details/41677093

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!