After git add .
I ran git rm -r -f .
,and all my local files were deleted accidentally.
After recovering them with git fsck --lost-found
I have this in lost-found/other
directory:
git fsck --full
notice: HEAD points to an unborn branch (master)
Checking object directories: 100% (256/256), done.
notice: No default references
dangling blob 0453ac74117a3e02ae1169ac28e6df356baec5b6
dangling blob 871364bedccaa2c57054509feeb60955e70bd141
dangling blob c38f2c2aead5f278b7680a0629ee56682264f9d3
dangling blob c2ad8101cfcf3d21e33c8da3f0677b5b9cc58c30
dangling blob c5d98571c464030b61978b6812fa3579c7294b99
missing tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
After looking at some dangling blobs, I realized that although they have the deleted file's content but also some gibberish along with:
slug_fieldtidtMetacBseZeZdZRS(tcreatedtownertimage(screatedsownersimage(R(R)Rtmodeltfields(((sE/home/invinciblycool/PycharmProjects/jotter_api/jotter/serializers.pyR1HsN((
R(R)R
tNonetTrueR4RtSlugRelatedFieldR3R1(((sE/home/invinciblycool/PycharmProjects/jotter_api/jotter/serializers.pyR+?s
tNoteSerializercBs3eZejdedd�Zddd��YZRS(R.R/R0R1cBseZeZdZRS(R3R2ttext(sownerscreatedstext(R(R)RR5R6(((sE/home/invinciblycool/PycharmProjects/jotter_api/jotter/serializers.pyR1Ss((R(R)RR9R8R3R1(((sE/home/invinciblycool/PycharmProjects/jotter_api/jotter/serializers.pyR:M (RRtrest_frameworkRtmodelsRRR t
ImageFieldR
How do I recover these files, actually from the gibberish I am not even sure if these were the files. FYI the Javascript files seem to be clean but not the other python and html files.