In the past I have really enjoyed using Trac with subversion repositories hosted on some of my own servers. The integrated ticketing and online code browsing is very conven
JavaForge also offers free Git hosting with all the features of Trac, plus a lot more.
You can also download and install the software that powers JavaForge, if you want to do the hosting for your projects.
(Disclaimer: the software itself is a commercial product, and we are the company behind it.)