I have completely messed up my computer. I had used Git couple of years back and now today I had to work on a project when I started using git.
- I opened terminal went to
cd Desktop
- Then
git add
(forgot to mention the name of directory I wanted to add) - Checked status of git and it showed all the directories/subdirectories on my desktop as untracked files.
- I got panicked and after reading slightly on internet executed
git
command toclean
with-fd
.
While I was working on my desktop I noticed my desktop folders are vanishing I closed the terminal and thought its not possible and then did git clean -fd
again .. but yeah it was happening and within minutes my desktop was empty. I again closed terminal but there was only one or two folders left and rest all was gone which included all my work, documents, 1000s of images, Music, Videos etc. Now I don't know how to retrieve it. Can it be retrieved via git or even via hardware recovery software?