lazygit
БесплатноБез исполняемых скриптовНе проверенlazygit is a keyboard-driven terminal interface for Git that makes staging single lines, interactive rebase, cherry-picking, bisecting and undoing mistakes a…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
lazygit — Terminal UI for everyday and advanced Git
Overview
lazygit shows files, branches, commits and stashes as panels in the terminal and turns multi-step Git operations into single keys. It is a program for a person at a keyboard. An agent's part is to install it, write and validate its configuration, add custom commands that fit the team's workflow, and tell the user exactly which keys to press. For Git work the agent performs itself, it uses the git command line.
Instructions
Installation
brew install lazygit # macOS and Linux
winget install -e --id=JesseDuffield.lazygit # Windows
choco install lazygit # Windows, alternative
go install github.com/jesseduffield/lazygit@latest
conda install -c conda-forge lazygit
lazygit --version
On Windows, Scoop works too: scoop bucket add extras, then scoop install lazygit. Linux distributions package it as well: apt install lazygit (Debian 13 and Ubuntu 25.10 or later), pacman -S lazygit (Arch), xbps-install -S lazygit (Void), and on Fedora dnf copr enable dejan/lazygit followed by dnf install lazygit. Binaries for every platform are on https://github.com/jesseduffield/lazygit/releases. lazygit refuses to start with Git older than 2.32.0.
Starting it (for the user)
lazygit # inside a repository
lazygit --path ~/code/storefront-web # another repository
lazygit log # open focused on a panel: status, branch, log or stash
lazygit --filter src/checkout/ # only history that touches this path
lazygit --screen-mode half # normal, half or full
Find and inspect the configuration
lazygit --print-config-dir # directory that holds config.yml
lazygit --config # print every option with its default value
Default locations of config.yml: ~/.config/lazygit/ on Linux, ~/Library/Application Support/lazygit/ on macOS, %LOCALAPPDATA%\lazygit\ on Windows. Settings can also live per repository in .git/lazygit.yml, and a .lazygit.yml in any parent directory applies to all repositories below it. These override the global file. LG_CONFIG_FILE or --use-config-file selects other files; a comma-separated list is merged in order.
Write config.yml
Include only the settings that differ from the defaults.
# yaml-language-server: $schema=https://raw.githubusercontent.com/jesseduffield/lazygit/master/schema/config.json
gui:
nerdFontsVersion: "3"
showFileTree: true
sidePanelWidth: 0.3
git:
mainBranches: [main, develop]
disableForcePushing: true
diffRenderers:
- command: delta --dark --paging=never
commitPrefix:
- pattern: "^\\w+\\/(\\w+-\\w+).*"
replace: "[$1] "
os:
editPreset: vscode
update:
method: never
notARepository: quit
editPresetacceptsvim,nvim,nvim-remote,lvim,emacs,nano,micro,vscode,sublime,bbedit,kakoune,helix,xcode,zedandacme.diffRenderersis a list; the user cycles through the entries with the pipe key. Besides acommand, an entry can settype(stdinFilter,extDifforrawGit),name,colorArgandargs.commitPrefixbuilds a commit message prefix from the branch name: onfeature/PAY-482-gift-cardsthe message starts with[PAY-482].nerdFontsVersionneeds a Nerd Font in the terminal; leave it out otherwise.
Custom commands
customCommands:
- key: <ctrl+g>
context: files
description: Conventional commit
prompts:
- type: menu
title: Commit type
key: Type
options:
- value: feat
description: new user-facing behaviour
- value: fix
description: bug fix
- value: chore
description: tooling, dependencies
- type: input
title: Scope (optional)
key: Scope
- type: input
title: Subject
key: Subject
command: >-
git commit -m {{ printf "%s%s: %s" .Form.Type
(and .Form.Scope (printf "(%s)" .Form.Scope)) .Form.Subject | quote }}
loadingText: Committing
- key: <ctrl+u>
context: localBranches
description: Open pull request with gh
command: gh pr create --fill --head {{ .SelectedLocalBranch.Name | quote }}
output: terminal
| Field | Meaning |
|---|---|
key |
Key that triggers the command. Without it, the command is reachable from the ? menu. |
context |
Panel where the key is active: status, files, worktrees, submodules, localBranches, remotes, remoteBranches, tags, commits, reflogCommits, subCommits, commitFiles, stash or global. Several can be listed, separated by commas. |
command |
Shell command, written as a Go template. |
prompts |
Questions asked first. Types: input, confirm, menu, menuFromCommand. Answers are available as .Form. plus the prompt's key. |
Установить lazygit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lazygit?
lazygit is a keyboard-driven terminal interface for Git that makes staging single lines, interactive rebase, cherry-picking, bisecting and undoing mistakes a matter of a few keypresses. Use when a user asks to install lazygit, configure its config.yml, add custom commands or change keybindings, set up delta as its diff renderer, or wants to know which keys to press to squash, amend, cherry-pick or undo commits in lazygit.
Как установить скилл lazygit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lazygit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic