Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.
I’m afraid the files can’t be restored from our side. InfinityFree doesn’t create or store backups of free hosting accounts. The backup article says keeping backups is the account owner’s job.
The article on backing up your website covers how to make backups with FTP and phpMyAdmin:
Your database is a separate thing from the htdocs folder. Emptying htdocs shouldn’t have touched it, though I haven’t checked that it’s still there. Open phpMyAdmin from your control panel and see if your database is listed. If it is, export it now, following the “Backup your databases” steps in that article. With that and the older GitHub version, you can rebuild the site on top of your original data.
Also check your own computer, or any host or tool you deployed from, for a copy of the original files. Those are the only places a copy can come from.