Answer the question
In order to leave comments, you need to log in
How to restore a project from .git?
Accidentally in VS Code I clicked the GIT "clear all" tab, as a result I got an empty folder, in which only the hidden .git directory (16-20mb) remained. Is there any way to restore the project?
Answer the question
In order to leave comments, you need to log in
To get started, look in the basket, maybe you're lucky and you can restore everything with "one click".
If you're not lucky, you can only restore the contents of the files using:
All files will be in .git/lost-found/other/
The only thing is that you will have to somehow restore the directory tree and file names manually , because not a single tree was restored from git objects .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question