GitHub is by far the most popular way to share code. That said, one weakness of the platform is that it limits who can create private repositories – that is, software projects that aren’t visible to the broader public, and are shared only with a handful of pre-defined collaborators – to paying users.
Days are over now! Yay!
No you can create unlimited free private repositories.