git 错误 fatal: loose object...is corrupt解决方法

来源:互联网 发布:单例模式 java代码 编辑:程序博客网 时间:2024/06/05 06:21

错误描述:

 
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   


阅读全文
0 0
原创粉丝点击