Github.com is protected by the DMCA. If they get a takedown notice then they have to comply, until then they aren't liable. One of the whole points of the DMCA is to prevent hosting companies like Github from being held liable when their users upload infringing content.
http://en.wikipedia.org/wiki/Digital_Millennium_Copyright_Ac...