镜像 git 存储库时出错



我在镜像 git 休息时遇到以下错误,看不到这些标签是存在的,是否有其他命令可用于镜像 git 存储库?

-bash-4.1$ git push --mirror git@gitlab.sd.company.com:techFirmware/PROJECTmirror.git
Counting objects: 15, done.
Delta compression using up to 24 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.55 KiB, done.
Total 9 (delta 6), reused 0 (delta 0)
remote: GitLab: You are not allowed to change existing tags on this project.
To git@gitlab.sd.apple.com:techFirmware/PROJECTmirror.git
! [remote rejected] PROJECT1310T472R15_BRANCH_13_45 -> PROJECT1310T472R15_BRANCH_13_45 (pre-receive hook declined)
! [remote rejected] PROJECT1310T472R15_REL_13_45_63 -> PROJECT1310T472R15_REL_13_45_63 (pre-receive hook declined)
! [remote rejected] PROJECT1310T472R15_REL_13_45_63_RETAG -> PROJECT1310T472R15_REL_13_45_63_RETAG (pre-receive hook declined)
error: failed to push some refs to 'git@gitlab.sd.company.com:techFirmware/PROJECTmirror.git'

这取决于您的 GitLab 服务器的版本。
请参阅问题 25175,该问题与问题 24813 重复,并通过 MR 7700 (GitLab 8.14.2( 进行了修复:无法再使用开发人员权限创建标记。

可能只是 GitLab 认为它是一个现有的标签,即使它是一个新标签。

检查您是否是要推送到的存储库的所有者,该存储库应该是一个新的空存储库(以便通过push --mirror导入本地存储库的内容(。

相关内容

最新更新