HOME | Baty.net →

Restoring a deleted file using Git

git rev-list -n 1 HEAD -- <file_path>

git checkout <deleting_commit>~ -- <file_path>

Per StackOverflow

Author: Jack Baty jack@baty.net.
Last update : 2018-12-26 Wed 10:27