Interesting point on Github!
In their case, it's like "Free for when you'r working on your own personal passion stuff, but it's paid when you go into the office and hack on your companies private code". The huge community and discussion is essentially a massive funnel, users already have an account, etc.
There's actually some potential parallels with Trak.io and I'm definitely going to keep Github on my whiteboard as a reminder why Freemium can work if you're a tool aimed at developers