To move data from Microsoft SharePoint to Github automatically, use a ready-made scenario — no manual exports.
You can launch this Microsoft SharePoint + Github integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.