The comparison to the Library of Alexandria is misleading, I think, because even if GitHub goes under, almost no data will be lost. Every bit of code that is hosted on GitHub is being stored locally somewhere by someone and and in many cases by more than one person.