4

I know that at some point I had a file in a certain path. Now, this file doesn't exist anymore. I didn't delete it from git. I'm not sure I added it? At any rate I didn't do any destructive action.

How can I find out which commit or stash this file is in?

troricleba
  • 151
  • 1
  • 3
  • 12

1 Answers1

3

The --follow option of git-log is for looking for a particular file.

git log --follow -- <filename>
iBug
  • 35,554
  • 7
  • 89
  • 134
JKLZ
  • 33
  • 7