title: How can I get a file back after committing its deletion?
body: <p>I've deleted several files and committed this change in Git in a feature branch, but it turns out one of these is needed after all. Since the file isn't there, I can't easily view its history and see which commit I did this, etc.</p>
  <p>I do know the name of the file. How can I get back just this one file? I do physically have a copy of it but it seems like restoring it from the parent branch or rolling back that deletion would be better for version history.</p>
  <p>This is a feature branch with dozens of commits, it is just this one file from one commit I want back. I made the change weeks (and many commits) ago and this mistake only was noticed today.</p>
  <p>(Looking online I seem to find a lot of people asking how to revert deletions after rebasing and so on but this is a straight-up &quot;oops I committed a file-delete&quot;)</p>