GitHub has gained near-monopoly status because it has provided a superior user experience at a great price. If either of those value propositions start to crumble,
git remote add ...
Exploitative monopolies almost always have help from the state: The Patent Office, Interstate Commerce Commission, Federal Reserve, FDA, etc either grant monopoly or cartel privilege to their customers. Monopolies achieved on the market cannot be sustained without continuing to satisfy customer demands.