In reply to nero.

There already exist GitLab. I use the hosted service for a bunch of projects. There is a self hosted version as well.