GitHub is just as anti-educational as proprietary textbooks, proprietary class management software like Blackboard, proprietary hardware like Macs or Dells, and proprietary software like Windows and OSX.
You're welcome to your principles, but they're not always practical.