.. and then I realised, github does all this for me, and for $50/m or something for an org account, and that is an absolute no brainer for a working professional. I cannot fathom these complaints about $22/m or what not. If you have enough knowledge to participate on HN and that amount of money is meaningful to you, you're doing something wrong.
I already had a server setup with redmine and some other internal services that I needed, so the added overhead for backups and so forth was pretty minimal.
I also want to keep control over any privileged client data and not trust them to "the cloud".
For sharing repos I grant people access to the corresponding redmine project (I have a script set up that make accessing things from there trivial, and redmine has support for private projects).
But yes. $50/month is really very cheap and if I didn't have my privacy concerns with github, and the problem of integrating it with my other services, I would probably use that.
Anyway YMMV but out of all the outsourcing decisions I've had to make recently, github was one of the easiest.