You have accidentally deleted test.rb. Which commands will restore the file to its previous committed state? code example
Example: recover lost file git
git log --diff-filter=D --summary
git checkout $commit path/to/file
git log --diff-filter=D --summary
git checkout $commit path/to/file