lazygit: Manage Git Repositories from the Linux Terminal

Written By
T
TecMint
Sep 11, 2026

Every command in this guide was tested on Ubuntu 26.04 and RHEL 10. You’ll learn how to install lazygit, understand its interface, stage and commit changes, create and switch branches, view commit history, resolve merge conflicts, and stash changes—all without leaving a single terminal window.
Normally, you’d run git status, use git add -p to stage the right changes, check them with git diff –staged, commit with git commit, and then verify everything with git log –oneline –graph.

That’s several commands just to complete one change. With lazygit, you can do all of this from one screen using the arrow keys and a few simple keyboard shortcuts.

T

TecMint

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.