Skip to content
Gemini CLI

Git for Gemini CLI

io.github.abhishekkumar2021/git

Local Git via MCP: status, log, diff, file history, branches, and gated stage/commit. Pure-JS.

client:Gemini CLI transport:stdio runtime:npm

Install Git in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "git": {
      "command": "npx",
      "args": [
        "-y",
        "@abhishekmcp/git"
      ],
      "env": {
        "GIT_ROOTS": "<GIT_ROOTS>",
        "GIT_WRITABLE": "<GIT_WRITABLE>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

Git in other clients