How to tell if git has ever tracked file X December 4, 2023 by Tarik Simplest would be git log --all -- x/y/fubar – if the file was there, it would have give atleast one log entry.