Skip to content

Instantly share code, notes, and snippets.

@zealfire
Created June 24, 2016 08:52
Show Gist options
  • Save zealfire/9513ca32d2534e15d85c1ca0525cde5b to your computer and use it in GitHub Desktop.
Save zealfire/9513ca32d2534e15d85c1ca0525cde5b to your computer and use it in GitHub Desktop.
Use git log --diff-filter=D --summary to get all the commits which have deleted files and the files deleted;
Use git checkout $commit~1 filename to restore the deleted file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment