git
The tracked changes tagged git, newest release first. Every sentence is an item's summary.
Goes with
Changes
MCP reference servers v2.6.0
-
A root whose .git file names any other Git directory is now refused by mcp-server-git under --repository.
-
mcp-server-git no longer runs programs named in a repository's configuration through Git LFS settings, and LFS downloads are turned off via GIT_LFS_SKIP_SMUDGE=1.
-
mcp-server-git restricts the --repository root so it cannot be pointed at another repository's Git directory, except its own, linked worktree, or submodule directories confirmed by the main repository.
-
mcp-server-git git_remote withholds credentials from remote names and URLs, redacting any URL not at the start of a value as <redacted>.
-
mcp-server-git no longer expands environment variables in repo_path or --repository, and error messages no longer disclose expanded values.
+4 more
-
mcp-server-git reads objects only from the repository's own store when --repository is set, so alternates files are not read in that mode; alternates still work without --repository.
-
mcp-server-git git_merge refuses a merge commit that would overwrite ignored local files, changing nothing.
-
mcp-server-git repeats the --repository check after git_checkout, git_merge and merge-abort write the working tree, and stops without running further Git commands if the check fails.
-
mcp-server-git git_log documentation now states it is newest-first and its timestamp filters are optional.
Claude Code v2.1.332
-
Fixed self-hosted runner sessions failing their first clone under Anthropic-managed git when git config has an includeIf gitdir or onbranch section.
-
Self-hosted runner: fixed --configure-git sometimes reporting a hung git --version as a git not on PATH.
-
Fixed Esc not stopping a Bash command while it waited for its file diff in large or slow git repositories.
Claude Code v2.1.331
-
Fixed /diff leaving out files added with git add -N in a repository with no commits.
-
Improved start-up so a session outside a git repository without .claude/settings.local.json no longer waits on git.
-
[VSCode] Added Add to Chat to the right-click menu of changed files in the Source Control view.
-
[VSCode] Added Resolve Merge Conflicts to the editor title of files with merge conflicts and to the Merge Changes group in Source Control.
Claude Code v2.1.330
-
Changed claude --teleport in some setups to print git commands for switching branch instead of running them; with -p it exits 1 until the branch is switched.
-
Fixed Claude sometimes replying to its commit attribution reminder and ending the turn early after a mid-turn model change; it can still happen where managed settings set the PR attribution line.
-
Fixed resumed self-hosted runner sessions starting without their pushed work in large repositories when --push-outcome-on-release is set.
-
Self-hosted runner: a failed start with no git credentials now says whom to ask and what to do if the repository is wrong, instead of suggesting a retry.
Claude Code v2.1.329
-
Self-hosted runner: a second host name's clone of the same owner/name now goes under _repos/clones/<host>/ in the base folder, though no existing clone moves.
-
Fixed /code-review with a PR number sometimes reviewing the checked-out branch without saying so; it now reads the PR with gh pr diff or says it cannot.
-
Self-hosted runner: fixed --push-outcome-on-release sometimes deleting a session's branch on the git host.
-
Self-hosted runner: fixed setup failing on Git LFS repositories cloned through Anthropic-managed git; sessions start on pointer files and git lfs pull fetches content.
-
Fixed self-hosted environment sessions not starting from a git remote using an SSH host alias, GitHub SSH certificates or a GHE.com SSH user; the alias error now gives two git commands.
+4 more
-
Fixed the Remote Control diff listing a file twice when the branch renamed it and it was then edited.
-
/code-review with no target on most models now reviews the whole branch against the default branch, and no longer loses the diff on multi-commit branches.
-
Auto mode runs git status less often; a git command that discards changes may now be blocked until the working tree is checked.
-
/code-review with a PR number and --fix, or given a PR URL, now stops without reviewing when gh pr diff is refused or fails.
Claude Code v2.1.328
-
The Linux Bash sandbox no longer renames .git/HEAD after each command when the branch name is not valid UTF-8.
-
Self-hosted runner no longer deletes a kept clone's objects or refs, or commits existing only there, after a temporary disk error; that start now fails instead.
-
Sessions with Anthropic-managed git keep GitHub access after a script or hook in the session runs claude again.
-
Self-hosted runners with Anthropic-managed git can fetch and push when the machine's git config sets http.proactiveAuth.
-
A claude run by a wrapper script before the session's own claude is up, or after it has ended, has no Anthropic-managed git.
+1 more
-
Self-hosted runners at --capacity 1 refuse a session earlier when the path of a repository it pushes to is a symbolic link.
MCP reference servers v2.5.0
-
mcp-server-git requires Git 2.33 or newer for repositories with a checked-out submodule, and refuses repositories that declare a promisor remote on Git versions too old to disable lazy fetching.
-
mcp-server-git 2026.11.18 stops git_merge from starting Git's automatic maintenance, setting maintenance.auto to false and gc.auto to 0 for every Git command the server runs.
-
mcp-server-git turns off lazy fetching with GIT_NO_LAZY_FETCH=1 and refuses repositories that declare a promisor remote when the installed Git is too old to honor that setting.
-
mcp-server-git re-reads filter and merge drivers after git_checkout, git_merge and the merge abort write the working tree; the --repository confinement check is not yet repeated after such a write (issue #5599).
-
mcp-server-git empties filter or merge drivers with an empty name, which previously were missed and could run their command.
+3 more
-
mcp-server-git refuses index entries that point outside the working tree and turns off the untracked cache, which previously let git_diff, git_diff_unstaged and git_status read or check files outside the repository.
-
mcp-server-git sets diff.submodule to short, overrides drivers defined by checked-out submodules, and refuses repositories with a checked-out submodule when Git is older than 2.33.
-
mcp-server-git 2026.11.18 redacts query values and the fragment in git_remote URLs.
Claude Code v2.1.327
-
Fixed self-hosted runners with --use-anthropic-git-proxy deleting a non-empty directory named by GIT_CONFIG_GLOBAL at startup; the runner now keeps it, ignores the variable and warns.
-
Improved startup time on Windows when PATH points to Git for Windows' bin folder by starting git.exe directly.
-
Changed non-interactive (-p) mode to run fewer git commands before the first request.
Claude Code v2.1.326
-
Worktree creation, /teleport and IDE checkouts run git with a stricter PATH, so a git filter or helper may need its full path.
-
Subagents isolated in a worktree refuse some git commands in Bash that can rewrite branches shared with the checkout, in any repository.
-
Self-hosted runner Linux and macOS sessions with no gh get a built-in gh api by default via Anthropic; --use-anthropic-gh false turns it off.
-
The footer PR badge updates when the branch changes instead of showing the previous branch's pull request.
footergit -
The Pushed to summary names the right branch after a fetch or pull, and Merged or Closed PR no longer shows when gh refused the action.
gitsummary
+2 more
-
The first message after /compact is faster in git repositories.
-
The Bash sandbox sets aside unexpected entries in a repository's .git folder after a command.
Claude Code v2.1.325
-
Changed read-only git commands to ask first in repositories that are not the project's or a trusted one; name the repository with --add-dir, not additionalDirectories, to run them without prompts.
-
Changed worktree isolation so an isolated worktree session or agent is refused git bisect run, git maintenance register or start, and scalar set-up commands, and is told what still works.
-
Added a note for Claude when a sandboxed git checkout, git stash, or autostash pull cannot update protected files such as those in .claude.
-
Fixed /security-review and skills' inline git commands erroring in worktrees of bare repositories, --separate-git-dir checkouts, and Android repo checkouts.
-
Fixed sessions showing as waiting for input when a finished pull request only needed the user's own review or merge.
+5 more
-
Fixed worktree.sparsePaths and sparse plugin and marketplace clones omitting the repository root files on older git versions such as 2.34.
-
Fixed a case where the Bash sandbox did not fully protect a linked worktree's shared git folder.
-
Fixed /teleport's stash choice in some unusual git states; it now stops and says what to do.
-
Improved the HTTPS authentication failed message for private plugin marketplaces to say git terminal prompts and askpass are disabled, and to appear with newer git versions.
-
Changed ripgrep, local git commands, and sandbox runtime helper programs to run without the mTLS client key passphrase in their environment.
Claude Code v2.1.323
-
Changed /security-review to ask before Claude runs it, and skills' inline git commands to stop in bare-repository worktrees and similar folders until allowed, outside auto mode and bypass.
-
Changed ripgrep and most internal git commands to run without most sign-in tokens and API keys, so credential helpers or hooks under them no longer find them.
-
Changed glab config set without --global or --host, and glab config edit --local, to fail read-only inside the Bash sandbox; run them outside it.
-
Changed the macOS and Linux sandbox so git worktree add, move, and remove fail read-only, as do commits in worktrees the session was not started in or given.
-
Changed marketplace and plugin installs to fail when a git submodule is not on the commit its repository records.
-
Changed worktree creation to refuse checkouts whose .git folders are links or hold hard links; use a plain clone.
+4 more
-
Fixed .claude/settings.local.json not being ignored globally when a folder later became a git repository or on a new machine.
-
Fixed the changed-files list of remote sessions omitting files added with git add -N before the first commit.
-
Fixed read-only git commands needing approval or being refused under claude -p when CLAUDE_CODE_SUBPROCESS_ENV_SCRUB is set on Linux.
-
[Claude Code on the web] Fixed git clones and fetches longer than ten minutes sometimes being cut off at the end in cloud sessions.
MCP reference servers v2.4.0
-
Git server Git commands now override repository-defined settings such as core.fsmonitor, diff.external, hooks, filter and merge drivers and signing, so a repository cannot run programs through its .git/config; Git older than 2.31 is now refused, so older Git installations must be upgraded (GHSA-6hqx-gqrx-c5r2).
-
Git server --repository confinement now refuses alternate object stores, linked worktree Git directories and symlinks in the Git directory that lead outside the allowed repository; directory junctions on Windows are not yet covered (GHSA-q74p-4wrc-q7w6).
-
Git server requires git_log max_count to be at least 1.
-
Git and time Zed configuration snippets are now valid JSON.
-
Git server --help and validate_repo_path now state the --repository confinement.
Claude Code v2.1.321
-
The git status given to Claude at session start now reads as unavailable when git status fails instead of reading as clean.
-
The git status given to Claude at session start no longer shows the first listed file as staged when its changes are not staged.
-
On Windows with a standard Git for Windows install, startup is faster because Claude Code no longer checks which git.exe to run on every launch.
Cursor Build Live Apps in Cursor
-
Apps can be deployed from new or existing repositories on Cursor Origin and GitHub; support for other git providers such as GitLab is stated as coming soon.
MCP reference servers v2.3.0
-
git_diff accepts revision ranges such as main..feature.
-
Documented setting the commit identity through env vars or gitconfig.
-
Added a git_merge tool.
-
Added a read-only git_remote tool that lists remotes.
-
Added prompts that embed the repository's changes.
Claude Code v2.1.318
-
Improves the reliability of git commits and pull request creation when the Bash tool runs macOS's built-in /bin/bash.
Claude Code v2.1.316
-
Improved /diff on large repositories: each refresh usually runs one fewer full-repository git command, and refreshes are spaced out when git is slow.
Claude Code v2.1.314
-
Fixed background diff refreshes briefly taking the repository index lock, which could make a concurrent git command fail with Unable to create .git/index.lock.
-
Fixed the Bash edit diff listing a whole file as changed when a CRLF file under git line-ending conversion was re-saved unchanged or had one line edited.
-
Improved the self-hosted runner error for a session branch missing from the git remote, which now covers never-pushed branches, explains each fix, and no longer suggests retrying.
-
On macOS, changed git grep in most commands Claude runs to use the C locale, to avoid a reported memory leak in macOS's regex library on files that are not valid UTF-8.
-
Fixed cloud sessions reporting uncommitted changes every turn after Claude moved a branch to a commit it had pushed from another worktree.
MCP reference servers v2.2.0
-
mcp-server-git documents that without --repository every reachable repository is in scope.
-
mcp-server-git creates a branch from a detached HEAD and from a commit-ish base.
-
mcp-server-git prints non-ASCII paths as written and replaces undecodable diff bytes.
-
mcp-server-git fixes the security advisory GHSA-w766-5x43-whvw.
Claude Code v2.1.309
-
Worktrees and branch checkouts created by Claude Code now ignore git replace refs, matching its other git operations.
-
Many git commands Claude Code runs for itself are faster on Windows, and their errors now show in English on every platform even when git uses another language.
-
Worktree creation and reuse no longer let git fetch objects on demand, in ordinary clones and in partial clones with a Bash sandbox configured; partial clones fetch them first.
Claude Code v2.1.307
-
Fixed self-hosted runner sessions with --use-anthropic-git-proxy committing a .claude/settings.local.json left in the clone by an earlier session.
Claude Code v2.1.305
-
Fixed new worktrees in a bare repository sometimes starting from local HEAD instead of the default branch.
-
Fixed repository access failing since 2.1.296 for self-hosted runners when a git credential helper or askpass program reads its settings through GIT_CONFIG.
Claude Code v2.1.304
-
Fixed claude --worktree removing the worktree and its branch without asking at exit when HEAD was detached or on another branch, which could lose commits.
-
Self-hosted runner: improved the error shown when the git host answers "not found" for a session's repository; it now names the repository and whom to ask.
-
Windows: improved git command start-up with a standard Git for Windows install by running git.exe directly instead of through its cmd launcher.
MCP reference servers v2.0.0
-
The fetch, git and time Python servers serve the 2026-07-28 protocol era alongside 2025-11-25.
-
The git server's git_show diff headers are prefixed with a/ and b/.
-
Known issue: in mcp-server-git, the string 'null' passed as base_branch to git_create_branch, or as contains or not_contains to git_branch, arrives as no value; this affects only a branch named null, and workarounds are documented.
Claude Code v2.1.302
-
Fixed plugin marketplaces re-cloning on every refresh, and newly installed git plugins showing version "unknown", when git defaults to the reftable ref format.
-
Fixed worktree isolation refusing to create or resume worktrees under git 2.56 or later when a stray .git file points at a directory that does not exist.
-
Self-hosted runner: fixed git fetches failing with "bad object refs/heads" in sessions that reuse a checkout stored in git's reftable format.
Gemini CLI Release v0.66.0-nightly.20261016.gdebf42324
-
Interactive credential and SSH prompts are disabled in getSafeGitEnv.
Claude Code v2.1.301
-
/diff now detects a conflicted cherry-pick or revert in reftable repositories when one of its git checks times out or fails.
Claude Code v2.1.300
-
The diff view in Claude Desktop and Remote Control sessions now detects a conflicted cherry-pick or revert in reftable repositories.
-
OpenTelemetry tool_result events now include git_commit_id after git commit -q in repositories using reftable ref storage.
-
--worktree sessions now start from the correct commit when a tag or branch is named like a commit ID, and their starting git status names the new worktree's branch.
-
The branch no longer shows as .invalid, and --worktree can reopen a worktree, in repositories using reftable ref storage.
-
--worktree in a worktree of a bare repository no longer fails when origin's default branch cannot be fetched; the fallback base is now the current checkout's HEAD.
+1 more
-
The diff view in Remote Control sessions on claude.ai and the desktop app now shows deleted and renamed files correctly; it requires Claude Code v2.1.296 or later on your machine.
Claude Code v2.1.299
-
Fixed --worktree sessions leaving a folder in .git/worktrees in repositories using git's reftable ref storage.
-
Fixed self-hosted runner sessions showing tracked files as staged deletions when starting in a reused clone whose remote is still empty.
-
Self-hosted runner: Improved the output of setup and doctor when the runner's machine has no git credentials.
-
Improved the error for creating a worktree at a bare-repository layout root to explain the layout.
-
Changed errors from /ultrareview upload failures to stop suggesting git add ., which could stage untracked files such as .env.
MCP reference servers v1.0.0
-
git removes the raise_exceptions parameter from server.run.
-
git unifies the git_log output schema, which changes the output shape for consumers.
-
fetch reports the package version in serverInfo.
-
git refuses empty commits and reports a no-op git_add.
-
git reports a detached HEAD from git_checkout and reports unknown branch types and existing branch names as errors.
+4 more
-
git_show prints git's format, decodes non-UTF-8 patches, and shows colons.
-
git resolves --repository to the repo root and prints a one-line error for a missing path.
-
git reports unknown tools and flag-injection rejections as errors.
-
git reapplies a merge autostash when git_commit concludes a merge.
Claude Code v2.1.296
-
Fixed a self-hosted runner session's git fetch, pull and push failing while another session of the same repository starts on a runner with --capacity above 1.
-
Fixed OpenTelemetry tool_result events missing git_commit_id after git commit -q or git -C <dir> commit.
-
Windows: Fixed claude plugin install failing for GitHub owner/repo plugin sources on machines with no GitHub SSH key; the clone is now retried over HTTPS.
Claude Code v2.1.295
-
Fixed subagents in their own linked worktree being shown the parent session's git branch, status and recent commits.
-
Self-hosted runner: Fixed git fetches being cut off while the git server still reported progress on large repositories; CLAUDE_RUNNER_FETCH_SERVER_PROGRESS_CAP_MS tunes or disables the wait.
Claude Code v2.1.293
-
Fixed the /ultrareview upload refusal over split-index files advising a git command that could leave git unable to read its index.
Claude Code v2.1.286
-
Fixed the commit attribution reminder being re-sent inside tool output when a model fallback lasts only one turn.
-
When project or user skills include one named verify, Claude is now told to run it right before committing, except for docs-only and tests-only commits.
Claude Code v2.1.285
-
/ultrareview on macOS and Linux now leaves symbolic refs out of uploads and refuses a checkout whose current branch is a symbolic ref.
-
/ultrareview on macOS and Linux now requires git 2.31 or newer to upload a local repository and refuses checkouts made with --separate-git-dir.
-
Fixed plugin and marketplace installs and updates over SSH ignoring the ssh program set in GIT_SSH or core.sshCommand.
-
Fixed SSH passphrase and new-host prompts from worktree and /teleport fetches taking over the terminal; these fetches now fail fast.
-
Fixed /ultrareview on macOS and Linux failing to upload from a git worktree whose per-worktree config sets core.longpaths.
+3 more
-
Improved validation of git URLs for plugins, marketplaces and the current repository's remote.
-
/ultrareview on macOS and Linux now sends a partial clone as a working-tree snapshot on git 2.31 or newer.
-
/ultrareview on macOS and Linux now refuses, instead of fetching, a partial clone missing working-tree files on older git versions.
Claude Code v2.1.284
-
Fixed /ultrareview failing to upload the working tree from a git worktree created by the Claude desktop app on macOS or Linux.
Claude Code v2.1.283
-
claude plugin eval now requires git 2.31 or later when git is installed and refuses to run on older versions.
-
Self-hosted runner lifecycle hooks' git now skips Git LFS pre-push hooks, ignores a writable system core.hooksPath, and does not sign commits without --configure-git.
-
Fixed worktree checkouts failing certificate verification when the CA certificate is passed via GIT_CONFIG_COUNT environment pairs.
-
Fixed sandboxed git asking credential helpers to store the sandbox proxy's login.
-
Under Anthropic-managed git on self-hosted runners, the runner's own git always verifies Anthropic's git route regardless of GIT_SSL_CAINFO and GIT_SSL_NO_VERIFY, with warnings explaining what applies.