lazygit, diffview, and blame

lazygit, diffview, and blame

lazygit — git at a glance

<leader>gg floats lazygit right over the editor: status, files, branches, commits, stash — with a live diff panel following your cursor.

The core loop:

  • j/k move; the diff panel follows
  • space stages the selected file (the M turns green)
  • c opens the commit message box; type and press Enter
  • q drops you back in the editor exactly where you left it

Staging, committing, branching, rebasing — all without leaving the file you were editing.

diffview — a proper review

<leader>gd opens the working tree against HEAD as a real side-by-side review: old version left, new version right, aligned line by line. Close with :DiffviewClose. For reviewing a branch before a merge, it replaces the GitHub compare page for local work.

fugitive — who wrote this line

:G blame

opens a blame margin: every line stamped with its commit, author, and age. Press gq to close. lazygit for the work, diffview for the review, blame for the archaeology.