I am in the process of migrating an existing SVN repository (only trunk) with over 10000 commits to a hosted Git solution (in my case BitBucket).
Converting the SVN repo to a local Git was no problem but now I want to push all revisions into an empty Git repo online.
But doing the push from TortoiseGit, it stops with this output:
git.exe push -v --progress "origin" master
Counting objects: 198817, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (83858/83858), done.
POST git-receive-pack (chunked)
Writing objects: 100% (198817/198817), 1.54 GiB | 460.00 KiB/s, done.
Total 198817 (delta 130510), reused 178506 (delta 112822)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 52 Empty reply from server
Pushing to https://__removed__@bitbucket.org/__removed__/__removed__.git
Everything up-to-date
git did not exit cleanly (exit code 1) (3644609 ms @ 06.10.2016 11:16:23)
I think the only solution to my problem is only to push 1000 commits at a time. But how can I limit to the first 1000 commits that aren't already on the server?
I dont want to specify each commit to push (like in this question answered). I simply want to set a maximum count.