- Open lazygit
- Press control-s
- Select “Enter path to filter by” and press enter
- Start searching for a path, then press tab to select the right match from the suggestions below
- Press enter on the file path you want
- Voila: a list of all the commits for just that file with a diff of each on the right
This replace’s VS Code’s file history Git Lens feature for me.
How to search through the history of a file · jesseduffield/lazygit · Discussion