Here is my situation:
- I made some local changes
- I added it to staging (
git add .
) and committed locally - Now I wanted to change the commit message so I thought I would discard that commit and do a new commit with updated message, so I searched (of course didn't searched properly) and in haste I did
git reset --hard origin/master
and all my local changes are lost.
Is there any way out, is there any GIT command which can help be get back my local changes?
My 3 hour work is on stake, please do let me know if there is any way out.