Is it possible to undo deleted files on sftp/ssh? Please say it is so!
There is no such thing as a recycling bin for SFTP/SSH (as far as I'm aware). If you deleted deleted a file, then it's gone for all intents and purposes - recovering the file would most likely require special file-recovery software. Show activity on this post.
If you can't find a file on your computer or you accidently modified or deleted a file, you can restore it from a backup (if you're using Windows backup) or you can try to restore it from a previous version.
In your case you must have used git rm to remove the file, which is equivalent to simply removing it with rm and then staging that change. If you first unstage it with git reset -- <file> you can then recover it with git checkout -- <file> .
Deleting files over SFTP/SSH is no different from running rm
on a *NIX machine or SHIFT+DELETE
on Windows. There is no such thing as a recycling bin for SFTP/SSH (as far as I'm aware). If you deleted deleted a file, then it's gone for all intents and purposes - recovering the file would most likely require special file-recovery software.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With