How do I upload theme and any post I created to github?

hi all,

quick question, is there a way to download my active theme, including all the posts and pages I have created? I see the export option in the lab, but it’s just one huge doc. I also downloaded the theme zip file, but all pages and posts are not there?

My goal here is to upload the theme and any page/post I have already created to github.