Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 376 Bytes

7. Recover a deleted file(previously committed).md

File metadata and controls

6 lines (5 loc) · 376 Bytes

7. Recover a deleted file(previously committed)

You are making new changes to your project and you see an obsolete file. You go ahead and delete the file so you free up space. Sometime later you realize that you need the file you just deleted.

To recover your file:
git restore deleted-file.css
This will present the file to you as it was in the previous commit.