01-12-2023 11:00 via smashingmagazine.com

Recovering Deleted Files From Your Git Working Tree

There are times when mistakes happen, and useful and important files are deleted by error or lost from your file system irrevocably (or seemingly, at least). Version control systems make it difficult to permanently lose files, provided they have been either added to staging or committed to a remote repository, because Git allows you to undo or revert changes and access previous versions of the saved files.
It is also possible to erroneously erase files from both the working directory and the Git
Read more »