Skip to main content

lazygit-commit-history-for-a-file

  1. Open lazygit
  2. Press control-s
  3. Select “Enter path to filter by” and press enter
  4. Start searching for a path, then press tab to select the right match from the suggestions below
  5. Press enter on the file path you want
  6. 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