I recently wanted to start tracking some project files for a certificate course I'm taking, so I got the Git Desktop app and linked my main project folder to my Github repo, where I intended to only track specific folders.
So thinking this was the right way to go, I added basically everything that I didn't want to track to the .gitignore
file.
All these Jupyter Notebooks, tens of thousands of data images, etc.
And after one night, and one pull to get the readme from the online repo into my local files, Git deleted every single file that was named on the .gitignore
file.
Every folder is empty, except for the tracked project folders.
Is there a way to recover the files, and prevent this from occurring in the future?