I have a huge problem. Yesterday I mistaken development and production terminals opened side-by-side and ran
git add .
on production. That caused staging all files in public/uploads path. When I tried
git status
It showed all files in public/uploads are staged and ready to commit. But I never committed these changes, because on production I don't want any commits or pushes. SSH key on production doesn't have permission to push, only clone/pull.
So I ran these commands to force pull my new code from remote repository
git fetch --all
git reset --hard origin/master
git pull origin master
But now I find out that it has deleted all files in public/uploads path and the directory it self. When I check
git status
I see "Your branch is up-to-date with 'origin/master' ". Is there a way how to recover files from deleted directory? These files are pretty important...