Skip to main content

Lazygit

Why

  • Using CLI, hard to remember all commands (no hints available)
  • Using VS Code, hard to use keyboard for everything (especially complicated workflows)
  • Lazygit is a TUI that makes git workflows easy to complete with quick keypresses

General

Updating feature branch with latest upstream branch

  1. Move to branches area
  2. If your feature branch isn’t already checked out, move to it and press Space to check it out
  3. Move to the local copy of your upstream branch (e.g. main)
  4. Press f to fast-forward it to match its upstream (e.g. your local main now matches the remote main)
  5. Press M to merge the local copy of your upstream branch into your checked out branch (or r to rebase your checked out branch onto it if you prefer)

Splitting an existing commit into multiple commits

Inbox