Find a Git branch containing changes to a given file


I have 57 local branches. I know I made a change to a certain file in one of them, but I’m not sure which one. Is there some kind of command I can run to find which branches contain changes to a certain file?


Find all branches which contain a change to FILENAME (even if before the (non-recorded) branch point)

Manually inspect:

Find all changes to FILENAME not merged to master:

Leave a Reply