Mohamed Imran
Mohamed Imran

Reputation: 710

Restore All Deleted Files to the Current Working Directory from Git

I have accidentally deleted all files in frontend directory from my project. This is where I have everything. I can see all those files in the changes pane and it is marked with D. Is there any way I could retrieve completely everything.

Now, this is how my current project looks

enter image description here enter image description here enter image description here

Upvotes: 3

Views: 1564

Answers (1)

Robert Ravikumar
Robert Ravikumar

Reputation: 922

Use "git reset --hard"

Upvotes: 1

Related Questions