git deleted everything, how to recover files and folders

后端 未结 3 1494
半阙折子戏
半阙折子戏 2021-01-12 02:25

It was the first time that I was using git, I wanted to import an existing project into github and everything was deleted. After search for an answer I think git deleted the

3条回答
  •  攒了一身酷
    2021-01-12 02:41

    I don't believe you can recover those files and folders if you haven't committed them in the first place. Git can recover anything that you have committed into the repo, but if you didn't commit in the first place, it is not within the repo at all. This is partly the reason why I like to use git within a Dropbox folder.

提交回复
热议问题