I'm trying to migrate a project (7.9gb on disk) from a gitlab repository to github. The revision is a bit sketcht and some commits are very large and the diffs between two commits in the beginning of the projects with a lot of file changes can also be very large. Since github only allows a maximum of 2gb packet size when uploading I'm unable to do this in any way I've tried yet.
I've been trying to push incremental commits through to the new github repository using
git push github <revision_hash>:refs/heads/master
to create the initial branch and then
git push github <revision_hash>:master
This worked for a while until I encountered large files that came into the project at a later stage. Initializing git lfs and fetching the large files works, but trying to upload them to the new remote with a detached head, unable to add the .gitattributes file is proving troublesome.
I then tried to just run the mirror command
git push --mirror github
but end up with
client_loop: send disconnect: Connection reset by peer
Does anyone have a good way to migrate a project of this type and structure?