LazyVim/Keyshort/Git
- Keyshort LazyVim LazyVim/Keyshort
- Open Lazygit Card
- Description:
- Open Lazygit in a floating window rooted at the git root. The uppercase variant opens it at the current working directory. The mappings are available when the
lazygit binary is on PATH.
- Shortcut:
<leader>gg — git root<leader>gG — current working directory- Mnemonic
- git GUI, current working directory variant
- git GUI — uppercase for the current working directory
<leader>gG
- Git Status Picker Card
- Description:
- Pick from changed files, with a diff preview for each file.
- Shortcut:
<leader>gs- Mnemonic
- git status
- git status
<leader>gs
- History of the Current File Card
- Description:
- Open the git commit log filtered to the file in the current buffer — the "how did this line get here" view.
- Shortcut:
<leader>gf- Mnemonic
- git file
- git file
<leader>gf
- How to 1.) Git Log for the repository, and 2.) open the git/log for the current directory? Card
- Description:
- Open the commit log for the repository. The uppercase variant scopes the log to the current working directory.
- Shortcut:
<leader>gl — repository<leader>gL — current working directory- Mnemonic
- git log, current working directory variant
- git Log — uppercase for the current working directory
<leader>gL
- Blame the Current Line Card
- Description:
- Show the commit that last touched the current line, with an option to open the full diff.
- Shortcut:
<leader>gb- Mnemonic
- git blame
- git blame
<leader>gb
- 1. Open in browser or 2. Copy the Remote URL to the Forge (GitLab, GitHub, etc) for the current file and line range Card
- Description:
- Build the remote forge URL aka GitHub or GitLab for the current file and line range, then open it in the browser or copy it to the clipboard. Visual mode pins the selected line range.
- Shortcut:
<leader>gB — open in the browser- Mnemonic
- git browse
- git Browse
<leader>gB
<leader>gY — copy to the clipboard- Mnemonic
- git yank
- git Yank
<leader>gY
- My Notes
- My Note
- These are pickers over git data; the interactive staging and committing workflow lives in Lazygit behind
<leader>gg. - Hunk-level staging inside the buffer comes from nvim/Plugin/gitsigns.nvim on the
<leader>gh group, not from these keys. - A general LazyVim cheat sheet may list
<leader>gc for commit search and <leader>ge for a Neotree git explorer; neither exists here — those belong to the fzf-lua and neo-tree extras (see LazyVim/Keyshort/Explorer).