How to un-delete / recover local files from git pull?
Scenario:
- I have local files in a folder
- I do git init
- "git pull https://.." from server
- All the local files is deleted
Can I get my deleted files back?
Thanks
How to un-delete / recover local files from git pull?
Scenario:
Can I get my deleted files back?
Thanks
If the lost files were never staged or committed, there is no way to restore them using git. At this point, the only thing you can do is try to restore them using third-party undeletion utilities written for your OS.
(In my tests git doesn't delete local files at a git pull
, but at this point how the files got deleted is not relevant to the question, only to git's reputation for not deleting user data.)