For just the basics, self-hosting of git can be pretty easy. I use gitolite on a VPS.
https://gitolite.com/gitolite/