I am trying to migrate my OLD GitLab repo code.old-gitlab.cloud:legacy/OCG/my-big-repo.git to new GitHub repo code.new-github.cloud:legacy/OCG/my-big-repo.git ( Both servers are hosted on our company servers )
My new repo is completely empty ( no branches created at all ) : code.new-github.cloud:legacy/OCG/my-big-repo.git
But when I try to migrate old repo to new repo with 3 steps as below, I am running into issue. I am following 3 step solution suggested from this thread : Push local Git repo to new remote including all branches and tags
C:\migrate2>git clone --bare git@code.old-gitlab.cloud:legacy/OCG/my-big-repo.git
C:\migrate2>cd my-big-repo.git
C:\migrate2\my-big-repo.git>git push --mirror git@code.new-github.cloud:legacy/OCG/my-big-repo.git
Enumerating objects: 321124, done.
Counting objects: 100% (321124/321124), done.
Delta compression using up to 4 threads
Compressing objects: 100% (50306/50306), done.
Writing objects: 100% (321124/321124), 509.54 MiB | 1.84 MiB/s, done.
Total 321124 (delta 250948), reused 321124 (delta 250948)
remote: Resolving deltas: 100% (250948/250948), done.
remote: Checking connectivity: 321124, done.
remote: fatal error in commit_refs
To code.new-github.cloud:legacy/OCG/my-big-repo.git
! [remote rejected] 6722-GenerateEFTpaymentsforaffiliationsthatareconfiguredforEFTpayments -> 6722-GenerateEFTpaymentsforaffiliationsthatareconfiguredforEFTpayments (failure)
! [remote rejected] AA-8149-New-Screen-IQ1350-IQ1360 -> AA-8149-New-Screen-IQ1350-IQ1360 (failure)
....................continues with similar error messages for all other branches