I just made a huge mistake with Git and I'm afraid I've just lost 2 days of work, am hoping one of you might be able able to help me undo that!
I'm new to Git, so I'm constantly looking online how to do certain things, a few days ago I created a new branch with the web interface, since I've worked and worked without committing or pushing (or checking out said branch) since, today I thought it was about time I pushed my work, so I did the following;
git add .
git commit -m "these changes were awesome"
Then before git pushing, I thought "I really should put this on a new branch" a quick Google search on "how to change branch" came up with "git checkout"... "ok great!" I thought, and like the ape I am did it without a second thought, to see my file structure in VS Code massively change... then I realised I had lost it all.
Is there any hope that Git stores these deleted files anywhere? Is there any hope that I can get these files back and not have to jump out my window?