git-reo迁移到新服务器失败



尝试使用git clone--mirror将repo移动到新服务器。但当推失败时remote: fatal: git cat-file: could not get object info

以下是我的步骤:

git clone --mirror oldRepoUrl
cd old cloned repo
git remote add newRepoName newRepoUrl
git push -f --tags newRepoName refs/heads/*:refs/heads/*

目的地是一个新的空回购。

这是我得到的错误:

remote: System hooks checking refs/heads/master
remote: fatal: git cat-file: could not get object info
remote: fatal: git cat-file: could not get object info
remote: warn: committer emails ["email1@mail.com",...etc multiples] are not found in Github

这可能是由于提交者不再是项目的一部分吗?还是别的什么?

谢谢!

不要使用refspec"refs/heads/*:refs/heads/*",而是尝试使用git push --mirror,看看问题是否仍然存在。

为了进行测试,请尝试将其推送到一个全新的空存储库中。

注意:提交者是作为警告而提到的
致命错误来自其他原因(此问题说明了子模块的原因,但如果您没有任何.gitmodules,则不应与有关(

最新更新