Let’s look at a few ways to restore a deleted file, depending on how convinced you were at the time that you really wanted the file to be deleted! I deleted a file but didn’t commit Short of deleting the entire repository directory (and not having a remote), few operations will result in a state where you’re unable to bring back a file. As long as you’ve committed your work in Git, actually losing a file should be quite rare.