I have accidentally deleted my commits on pythonanywhere.com and now I see very old state of my files. My Django website isn't working at all.
What I did:
$ git reset --hard HEAD~1
And then:
$ git push --force
That was big mistake. I deleted commits from remote as well. What I wanted to do to fix it:
git reflog
And then use:
git reset --hard <sha value>
Unfortunately, bash console returned following error:
fatal: unable to write new index file
and then I have discovered that I am run out of space on my pythonanywhere account. It is strange, because before commits I had about 80% of used space, and now I have 100%. Is this the reason why I cannot use git reset command? I deleted single file to free up the space, but still it is telling me that space is 100% used. Now I see old version of my Django project, it never took up so much space.
What can I do to restore previous state of my files?