我正在尝试将存储库从Bitbucket迁移到GitHub,该存储库由于树中的错误而失败。
git fsck
给出以下输出:
Checking object directories: 100% (256/256), done.
warning in tree 86b6f36a93c983faab565674a0b92f93fb22cfc7: nullSha1: contains entries pointing to null sha1
error in tree 86b6f36a93c983faab565674a0b92f93fb22cfc7: duplicateEntries: contains duplicate file entries
使用git ls-tree 86b6f36a93c983faab565674a0b92f93fb22cfc7
给我 - 除其他外 - 这些内容:
160000 commit 0000000000000000000000000000000000000000 foobar
040000 tree 2abdf38e2288bca8be24df800372c6a96ecef111 foobar
我知道第一行stands for a deleted sub module。我想从历史中删除对此的引用,以允许我将其推送到GitHub。