I’m a student and due to Coronavirus had to upload some simple scripts into my Github. So yesterday I had around 5 folders that had files in “skriptimine” repository. All that previous work was done at school. So I wanted to upload a new script to Github and for some reason it overwrote my repository (all my previous scripts got deleted).
git add yl1
git commit -m “Hüpotenuus” #It shows "Praks5"on the image, I did git commit --amend command and pushed the upload again. Not sure why.
git push -uf skriptimine master #I got some sort of error, after next command didn’t get the error anymore
git remote add skriptimine https://github.com/janargithub/skriptimine.git
git push -uf skriptimine master #yl1 got uploaded and old scripts got deleted. Searching for a solution if I can recover them.
After these commands the new yl1 file got uploaded and previous files got deleted. Can I somehow recover the deleted files? Thank you.