Among others, there's gitlab.com and bitbucket.com (and also mercurial, as an alternative to git itself -- though the two can push/pull between each other's repos with the right plugin).
Regarding mercurial, I used it a lot and hosted lot of things on bitbucket 4 years ago, but now I use git a lot more, just because it is what most of the libraries and opensource projects I use are using.