The first time I used git, I wanted to import an existing project into github, and everything was deleted. After finding the answer, I think git deleted the files after git pull, I try to recover files and folders, but I can not find how to do this.
I did exactly the following:
jesus@jesus-K52F :~/Escritorio/Django/Ujixy$ git init Initialized empty Git repository in /home/jesus/Escritorio/Django/Ujixy/.git/ jesus@jesus-K52F :~/Escritorio/Django/Ujixy$ git add . jesus@jesus-K52F :~/Escritorio/Django/Ujixy$ git status
Now I am trying to fix this by doing the following:
jesus@jesus-K52F :~/Escritorio/Ujixy$ git fsck --lost-found Checking object directories: 100% (256/256), done. dangling tree bfe11a30d57a0233d3b0c840a3b66f6421987304 jesus@jesus-K52F :~/Escritorio/Ujixy$ git status
But, how can I restore directories with all files and folders? Now I am working in a copy of the .git folder to avoid other problems.
source share