I was able to migrate a Perforce depot into Git using git-p4. The depot has a huge history, and turned to be +7GB on Git:
MyProj.git\objects\pack
I am trying to push into Team Services, but there seem to be a Push Size Limit:
C:\SomeFolder\MyProj>git push -u origin --all
Counting objects: 41905, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (10604/10604), done.
Writing objects: 100% (41905/41905), 6.83 GiB | 8.34 MiB/s, done.
Total 41905 (delta 30933), reused 41902 (delta 30930)
error: remote unpack failed: error TF402462: This push was rejected because its size is greater than the 5120 MB limit for pushes in this repository. Learn more at https://aka.ms/gitlimit
To https://MyRepoURL/MyProj
! [remote rejected] master -> master (TF402462: This push was rejected because its size is greater than the 5120 MB limit for pushes in this repository. Learn more at https://aka.ms/gitlimit)
error: failed to push some refs to 'https://MyRepo/MyProj'
If I remove files to decrease the size, the size actually gets bigger (Deleted files get tracked on delete).
What are my possible solutions here?