Developing lots of wordpress sites

This is more a general advice question not a technical one. Currently I am using MainWP for managing my WordPress sites but I am looking for a tool to help manage it during development. What is the best way to manage multiple themes, I was thinking GitHub repos for each theme but not sure the best way keep them synced with the website.