我最近尝试将存储库导入 GitHub(来自 Bitbucket),但导入失败。GitHub 技术支持通知我,他们在存储库中看到了“错误日期”问题,我应该git fsck
在存储库上运行。所以我从 BitBucket 克隆它并运行git fsck
,这就是我得到的:
git fsck Checking object directories: 100% (256/256), done.
error in commit fda45b4b6b06f6b815341c1f26de827c769f48b6: badDate: invalid
author/committer line - bad date error in commit
636d259fd0ac343af2a5561ff799a54a6aeb9b1c: badDate: invalid
author/committer line - bad date error in commit
41dc786816992e3c42c904e8c848aa1078475386: badDate: invalid
author/committer line - bad date error in commit
c55a0fa0d98e02aa4621be202d7b7d21ed2ff2ab: badDate: invalid
author/committer line - bad date error in commit
e6ad8f5ea7cf6441b6ea6ab5583117113a8f49fb: badDate: invalid
author/committer line - bad date error in commit
4aea97fdd999484319a9fbbc4dc42b024e1eba80: badDate: invalid
author/committer line - bad date error in commit
531f7783e383868c1d52a1bf2dc3212f5e10a91c: badDate: invalid
author/committer line - bad date Checking objects: 100% (546/546),
done.
天哪,那是怎么发生的?我什至不知道如何开始解决这个问题。搜索“bad date”并没有得到任何有用的建议。
一位好心的 git guru 会愿意引导我朝着正确的方向前进吗?