Not only is that not true, it's contradicted by the very page you link.
That page has a list of links to resources you can use to self-host git repositories you want to publish, so you don't have to give up control of anything.
(Although, against GitHub as I am, even I am unable to fathom how publishing things on GitHub could possibly mean relinquishing control of your fate.)