Py学习  »  Git

向远程git服务器添加损坏或删除的提交

Leandros Sardinas • 5 年前 • 1578 次点击  

我的远程git服务器上的某些文件似乎已损坏,当我尝试将repo克隆到新系统时,出现以下错误。

remote: error: Could not read c168e82dd62c0cdbf3ea7c3be3a84218a12c8a03
remote: fatal: Failed to traverse parents of commit 02d8c9217333d89afd61da1788fa82329b692610
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header

当我跑步的时候 git fsck --name-objects :

broken link from  commit 02d8c9217333d89afd61da1788fa82329b692610 (~17)
              to  commit c168e82dd62c0cdbf3ea7c3be3a84218a12c8a03 (~18)

我有一个没有错误的回购协议的本地副本,有没有办法只复制丢失或损坏的文件?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/45474
 
1578 次点击  
文章 [ 2 ]  |  最新文章 5 年前