git repo迁移到新服务器失败

git repo迁移到新服务器失败,git,gitlab,Git,Gitlab,尝试使用git clone--mirror将repo移动到新服务器。但当推动时,它失败了 remote:fatal:git cat文件:无法获取对象信息 以下是我的步骤: git clone --mirror oldRepoUrl cd old cloned repo git remote add newRepoName newRepoUrl git push -f --tags newRepoName refs/heads/*:refs/heads/* 目标是新的空回购 下面是我得到的错误:

尝试使用git clone--mirror将repo移动到新服务器。但当推动时,它失败了
remote:fatal:git cat文件:无法获取对象信息

以下是我的步骤:

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/*
”,而是尝试使用a,看看问题是否仍然存在

对于测试,请尝试将其推送到一个全新的空存储库

注意:提交者被称为警告。

致命错误来自其他原因(说明了子模块的原因,但如果您没有任何
.gitmodules
,这不应该引起您的关注)

请尝试使用refspec“
refs/heads/*:refs/heads/*
”,而不是使用refspec“
refs/heads/*”,然后查看问题是否仍然存在

对于测试,请尝试将其推送到一个全新的空存储库

注意:提交者被称为警告。

致命错误来自其他原因(说明了子模块的原因,但如果您没有任何
.gitmodules
,则不应担心)

您在要克隆的repo上有子模块吗?没有-没有子模块。您在要克隆的repo上有子模块吗?没有-没有子模块。git push newRepoName--mirror的错误与此相同。newRepoName是一个新的空存储库。@kipper3d我的意思是:
git push--mirror newRepoName
--mirror
在遥控器之前)。而
newRepoName
将是引用新空存储库的URL的远程(
git remote-v
)的名称)相同的错误。。。任何从这个错误中获取更多信息的方法,因为“remote:fatal:git cat file:cannot get object info”实际上并不能告诉我们太多。由于缺少提交者,它后面会出现警告。@kipper3d如果您有最新版本的Git(2.22+),则可以激活trace2:,正如Git push newRepoName--mirror中的相同错误所述。newRepoName是一个新的空存储库。@kipper3d我的意思是:
git push--mirror newRepoName
--mirror
在遥控器之前)。而
newRepoName
将是引用新空存储库的URL的远程(
git remote-v
)的名称)相同的错误。。。任何从这个错误中获取更多信息的方法,因为“remote:fatal:git cat file:cannot get object info”实际上并不能告诉我们太多。由于缺少提交者,后面会出现警告。@kipper3d如果您有最新版本的Git(2.22+),则可以激活trace2:,如中所述