git restore delete files code example Example: recover lost file git Click to copygit log --diff-filter=D --summary git checkout $commit path/to/file