¿Qué es lazygit?
lazygit is a interfaz de usuario de terminal simple para comandos git created by Jesse Duffield. It transforms complex Git operations into intuitive visual interactions, making version control accessible and efficient for developers of all skill levels. With over 63k GitHub stars, it's become the go-to Git TUI for developers worldwide.
⚡ Key Features of lazygit
📝 Visual Staging
Stage individual lines or hunks with simple keystrokes. No more complex patch editing - just press space to stage what you want.
🔄 Interactive Rebasing
Squash, fixup, drop, edit, and reorder commits with intuitive keyboard shortcuts. No TODO file editing required.
🍒 Cherry-picking
Copy and paste commits between branches with shift+c and shift+v. Visual commit selection and application.
🔍 Git Bisect
Visual git bisect interface to find problematic commits quickly. Mark commits as good/bad with simple keystrokes.
🌳 Worktrees
Create and manage Git worktrees to work on multiple branches simultaneously without stashing or WIP commits.
⚙️ Custom Commands
Extensible custom command system to add your own Git workflows and shortcuts directly into the interface.
apt upgrade te mantiene siempre en la última versión.
📦 Instalación desde deb.griffo.io
Paso 1: Agregar repositorio
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | sudo gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
sudo apt updateinstall -d -m 0755 /etc/apt/keyrings
curl -fsSL https://deb.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | gpg --dearmor --yes -o /etc/apt/keyrings/deb.griffo.io.gpg
echo "deb [signed-by=/etc/apt/keyrings/deb.griffo.io.gpg] https://deb.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | tee /etc/apt/sources.list.d/deb.griffo.io.list > /dev/null
apt updatesudo apt install extrepo
sudo extrepo enable griffo
sudo apt update🆓 Existe un espejo gratis para siempre. deb-free.griffo.io sirve paquetes gratis para siempre: sin cuenta, sin suscripción, como máximo 2 meses por detrás del upstream, correcciones de seguridad inmediatas. Ahora mismo incluye cliamp, Ghostty, lazydocker, Oh My Posh y Zed; lazygit no está entre ellas, así que hoy el repositorio de arriba es la única forma de instalarlo — pídelo y puede añadirse.
🧩 Sobre la opción extrepo. extrepo es la herramienta propia de Debian para repositorios externos: escribe el archivo de sources e instala la clave de firma por ti, comprobándola antes contra metadatos firmados. Este repositorio está registrado en ella como griffo, y el espejo gratuito para siempre como griffo-free, así que en Debian (bookworm, trixie, forky y sid) los comandos de arriba son toda la configuración.
extrepo solo configura el archivo de sources y la clave: las credenciales de una suscripción siguen yendo en /etc/apt/auth.conf.d/deb.griffo.io.conf. Ubuntu no está cubierto, porque extrepo publica metadatos solo para las suites de Debian: allí usa los comandos con sudo o como root.
Paso 2: Instalar lazygit
# Install latest lazygit
sudo apt install lazygit
# Verificar instalación
lazygit --version# Install latest lazygit
apt install lazygit
# Verificar instalación
lazygit --version🎯 Ejemplos de uso básico
Launch lazygit:
# Start lazygit in current Git repository
lazygit
# Create alias for convenience
echo "alias lg='lazygit'" >> ~/.bashrc
source ~/.bashrc
# Now use the alias
lgEssential keybindings:
# Navigation
j/k or ↑/↓ - Move up/down
h/l or ←/→ - Switch between panels
tab - Next panel
shift+tab - Previous panel
# Staging
space - Stage/unstage file or hunk
a - Stage all changes in file
v - Start visual selection
# Commits
c - Commit staged changes
shift+c - Copy commit (cherry-pick)
shift+v - Paste commit
# Rebasing
i - Start interactive rebase
s - Squash commit
f - Fixup commit
d - Drop commitAdvanced workflows:
# Undo/Redo
z - Undo last action
ctrl+z - Redo last undone action
# Worktrees
w - Create worktree from branch
# Filtering
/ - Filter current view
# Custom commands
: - Open custom command prompt🚀 ¿Por qué elegir deb.griffo.io?
- Official Debian Trixie/Sid: Available but often outdated
- Debian Bookworm: Not available in official repositories
- deb.griffo.io: Latest version available immediately
- ✅ Latest Features: Get newest lazygit features and workflow improvements
- ✅ All Distributions: Works on Bookworm, Trixie, and Sid
- ✅ Automatic Updates: Packages updated within hours of upstream releases
- ✅ No Manual Compilation: Pre-built Go binaries, no toolchain needed
- ✅ Proper Dependencies: Correctly packaged with Git and terminal dependencies
- ✅ Easy Maintenance: Simple apt commands for updates
📦 Repositorio de construcción de paquetes
Los paquetes de Debian se construyen y mantienen automáticamente en este repositorio de GitHub:
- 🐢 lazygit-debian - Latest release builds
🔗 Paquetes relacionados
También disponible desde deb.griffo.io:
- lazydocker - Terminal UI for Docker (same author)
- Ghostty Terminal - Modern terminal emulator
- fzf Fuzzy Finder - Enhanced command searching