So I changed computers a few days ago and I transferred most of my important files. The only thing I didn't do was expor my wordpress site or my SQL databases on XAMPP. The site was hosted on Github and it still works and I have access to every file, but since I downloaded a new XAMPP I can't open Wordpress for the old site (I assume the main reason is I don't have access to that databse anymore). I have installed Wordpress, so will I have to recreate the site? Or am I able to export the old sit into my new Wordpress installation despite not being able to access it. Sorry if this is a confusing description, 

I'm absolutely new to Wordpress. Since I still have all the files and it the old hosted site on Github Pages, I would assume I can somehow transfer those files? If the PHP files don't work, would I be able to use the static index.html website files that were generated when I converted to a static HTML site? Or do I have to recreate everything, I definitely can do it, but it'd be such a time spender. Thank you so much for your help and I apologize if this is stupid.

When I say files, I mean files such as the wp-admin, .php files, wp-content, etc.
It's inescapable you get a copy of your mysql DB file. There are all your settings, posts, pages, etc. stored. Otherwise you got little of substance with the php files alone, sorry

Having a static html copy would indeed help to get your content, but need to recreate everything manually from scratch by copy/paste/format and upload all your stuff back in.