1

I'm trying to find commit at which some specific *.npy file was deleted.

git log --full-history -- <my_file> not showing anything

Find when a file was deleted in Git

So I assume this file was added via git lfs.

How to find commit at which file tracked by git lfs was deleted?

mrgloom
  • 20,061
  • 36
  • 171
  • 301

1 Answers1

0

If you know the SHA of the file, maybe this can help :

git log --source --all -p -S <SHA here>

it searches through the entire commit history for a specific string (the SHA in this case), and since git-lfs stores files as text files containing the SHA of the actual file, you can track it down like that.

frederikvs
  • 43
  • 6