How to undo all git command I have applied today in VS Code

Viewed 67

I was removing the flutter project old git branch, commits, remote origin. While applying the command for untracked files I accidentally typed some commands which removed all my work including the files and folder of the project, now my project is empty, I am lost.

Please, is there any way to undo all the commands which I have applied and recover my files and folder in VS Code?

I have just remained with these files in my project folder

enter image description here

git log output: enter image description here

1 Answers

the same files I have mentioned above are committed to Github

The straightforward solution would be to:

  • close VSCode
  • rename your folder where those files are missing
  • clone again your GitHub repository
  • reopen VSCode
Related