Git Tool

What Kovra's built-in Git tool can do, how to open it, how to switch branches, and common shortcuts.

Kovra includes an IntelliJ IDEA–style Git tool, so you don’t need to open a separate IDE just for Git.

Capabilities

  • Partial commits: Commit only selected changes within a file.
  • Branch graph & log: Inspect commit history, branches, and tags.
  • Diff & three-way merge: Compare versions and resolve merge conflicts.
  • Interactive rebase: Reorder, squash, or edit commits.
  • Stash & shelf: Temporarily set aside local changes and restore them later.
  • Remote management: View and edit Git remotes.

Opening Git

  • Press Alt+0 to open the Git Commit tab.
  • Press Alt+9 to open the Git Log tab.
  • Open the command palette (Ctrl+K) and type Git: to access all Git commands, such as Git: Branches…, Git: Push…, Git: Merge…, and Git: Rebase….

Switching branches

Use the branch dropdown in the header to switch branches:

  • Branches already checked out in another directory appear grayed out and cannot be checked out again.
  • Selecting a remote branch automatically creates a local tracking branch with the same name.
  • If services are running in the environment, Kovra stops them first, completes the switch, and restarts them to match their previous state.

Common Git shortcuts

Action Shortcut
Commit Ctrl+Enter (in the commit message box)
Commit message history Ctrl+M
Show diff Ctrl+D
Update project Ctrl+T
Push Ctrl+Shift+K
Branches popup Ctrl+Shift+`
New branch (in branches popup) Ctrl+Alt+N
Next change (in diff view) F7

See Keyboard Shortcuts for the full list.

Edit this page on GitHub ↗