(Theme: Dracula)
VSCode Command | Default shortcut |
---|---|
Magit Status | alt+x g |
Magit File Popup | alt+x alt+g |
Magit Dispatch | alt+x ctrl+g |
Magit Help (when in status view) | ? |
> Magit
in VSCode Command palette will show you all available Magit actions from where you are.
Keybindings inside edamagit
Popup and dwim commands
A Cherry-pick b Branch c Commit
d Diff f Fetch F Pull
I Ignore l Log m Merge
M Remote P Push r Rebase
t Tag V Revert X Reset
y Show Refs z Stash shift+1 Run
shift+5 Worktree o Submodules shift+4 Process Log
Applying changes
a Apply s Stage u Unstage
v Reverse S Stage all U Unstage all
k Discard
Essential commands
g refresh current buffer
TAB toggle section at point
RET visit thing at point
shift+4 show git process view
q exit / close magit view
ctrl+j Move cursor to next entity
ctrl+k Move cursor to previous entity
Forge-enabled
: Enable Forge functionality (show pull requests, issues, etc from e.g. Github)Display-buffer-function
: Choose which side for magit windows to open on.Hide-status-sections
: Hide listed sections from status view.Quick-switch-enabled
: Automatically confirm switch menu after enabling a switch (e.g. --force)When used in a monorepo, you need to make sure that the subdirectory can detect the parent's .git
.
{
"git.openRepositoryInParentFolders": "always",
}
All edamagit keybindings are customizable using VSCode's built-in keybindings.json
.
Below are bindings providing evil-magit / spacemacs like keybindings.
The negative bindings, e.g. -magit.discard-at-point
for key k
,
remove the default edamagit bindings and the collisions with the Vim extension.
Open your keybindings.json
and paste the following JSON snippet.
Feature requests as well as issues are welcome