I have been doing some work saved on my local system for the last few weeks, I didnt commit the changes upstream onto main, saved locally only.
I then tried to create an empty branch without history (called publish), just an empty branch based on no existing branch. I must have got my cables mixed up, and what has now happened is that I created an empty branch which I cannot see on git UI.
I ran git checkout -b publish
on thesame terminal screen. What looks to have happened is that the local files which I didnt commit onto main now got pushed onto this publish branch.
Then i switched onto the main branch
Then I ran git pull
Suddenly, it pulled down all the files from the repo without the work from the last 2 weeks. Almost like a rollback, I have no backup anywhere, and I am gutted but hoping the files I need might be under the publish
branch I created, I cannot see these files on the git UI, so somewhat confused as to what to do next.
Any help will be appreciated.