I have a GitHub private repo, to which I push my changes via Visual Studio for Mac 2019.
Backstory
I added a readme file on GitHub directly, then a few weeks later I edited my local copy and tried to push my changes. I could not do it, cause it said that I had changes remotely that i don't have locally, which is fine.
Then I stashed my changes in VS for Mac, and tried to pull, which seemed to work.
Then I tried to apply my stash, and I kept getting random errors. Thought I might have to update VS for Mac, which I also did.
Then after updating, I could not open any files in my local repo, because it kept saying BeginBatchUpdate called twice without calling EndBatchUpdate
.
I restarted VS for Mac, then I tried to build my project, but I noticed that a file was missing.
I tried to checkout earlier commits, but it's as though it never existed - the file is not in there in earlier commits either... I tried to git reset --hard
, no luck, I tried to check if I did anything weird in git reflog
, there is nothing in it other than commits, resets, and checkouts, so I have no idea how the file could just disappear like this.
Question
Is there any chance to get back that randomly removed file?