How can I use one Github branch for multiple identical Shopify stores?

I have had all the struggles outlined in this entire thread. Could you share a repo with your solution? It would be lovely to be able to dig into and understand.