Not GitHubs problem
They are based in California. They block access to EU customers and if that's a problem for their EU customers, those customers can tell their local politicians about it, or they can set up their own "git repo-hosting" website and ignore complaints from US lawyers. It's not like GH is a technically complex web-site.
These constant wrangles about whose law applies to whose website amaze me. I can't think of any other domain of human activity where people *expect* that a single entity should abide by two contradictory sets of rules at the same time.