By the way, I don't want to troll you, but at my company we use Gitlab 6 self hosted version and I wasn't able to do a simple git push origin master
the repo I held in my machine was barely 5MB and still remote server closed connection HTTP 500
I solved it by increasing the POST buffer.
I never had this issue with github, maybe you can check why it was an issue with gitlab? it might help to advance your product!