I am new to Git and not sure how to recover deleted files. I made some changes to python code on my local machine and then pushed it to GitHub. Realised it might be a bad idea to add to the main repository (and decided to fork the repository instead) so deleted those commits using git reset --hard. I realised that deleting commit from GitHub removed all the changed files from my local machine too so all my work is lost.
$ git log --diff-filter=D --summary | grep delete doesn't return anything