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!
GitLab introduced a new web server (gitlab-workhorse) in 8.0 that's better at handling large HTTP requests. I would suggest upgrading (not just for that reason, there have been tons of improvements and security updates).