To me Github has become a social networking website for developers (bear with me). As a social networking website its sort of half-way between Instagram (instead of sharing pictures you share code) and LinkedIn (It serves as a programmer's online profile ).
As a social-networking website, the most important thing that defines it is the number of users. You could publish your code on Codeplex or Bitbucket, but you would be simply limiting your reach.