Skip to content

Git

Cogno’s Git panel shows the status of the Git repository for the currently focused terminal and lets you stage, unstage, commit, and inspect changes without leaving the terminal.

The panel tracks the working directory of the active terminal. When that directory (or one of its parents) is a Git repository, the panel shows:

  • The current branch name
  • Staged changes, with a commit message box and a Commit button
  • Unstaged changes and untracked files, including folders that can be expanded to show individual files
  • A diff view for the selected file
ActionDescription
Stage / unstageMove a file (or a whole directory) between the staged and unstaged sections
Stage all / Unstage allStage or unstage every change at once
Discard changesRevert a file to its last committed state (asks for confirmation)
Open in editorOpen the file in your default editor
View diffShow the diff for the selected file below the file lists

The panel shows a status message instead of file lists when:

  • No terminal is focused
  • The focused terminal’s directory is not a Git repository
  • Git is not installed or not on PATH
  • The repository has no commits yet
  • Reading the Git status failed
SettingDefaultDescription
git.modeoffvisible shows Git in the side menu, hidden keeps it available but hides it from the menu, off disables it

See the Config page for the full reference.

ActionDescription
open_gitToggle the Git panel