I have two branches of my project: master and live. I made some changes to my local files and when i was done, i wanted to push the changes to master. I never knew the current branch on git was live. I ran:
git add .
git commit -m "integrated ckeditor to replace Froalaeditor"
git pull --rebase bonychicken master
It was at this point git spat out:
From github.com:Lord-sarcastic/bonychicken
* branch master -> FETCH_HEAD
First, rewinding head to replay your work on top of it...
Applying: changed debug to false
Applying: integrated ckeditor to replace Froalaeditor.
And then I lost all changes to my local files.
So far i've tried
git reflog master
git reset --hard HEAD@{0}
It doesn't work.
Neither does git rebase --abort