{"version":"2.1.334","anchor":"git-push-target-detection-and-a-claudecodepushtarget-messag","canonical_anchor":"git-push-target-detection-and-a-claudecodepushtarget-messag","heading":"Claude Code now works out where a git push will go","tier":"internal","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/git-push-target-detection-and-a-claudecodepushtarget-messag","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Claude Code now works out where a git push will go\n\nClaude Code now reads git settings to report the push remote, host and branch, and turns this off if pushes are rerouted\n\n**What**\n\nClaude Code can now work out where a `git push` would send your work. It reads your git configuration and reports:\n\n- the host of the `origin` remote\n\n- the remote and branch a push targets\n\n- whether a plain `git push` goes to `origin`\n\nIt also checks settings that can quietly send pushes somewhere else: URL rewriting (`insteadOf`), `pushremote`, push and mirror settings, and `push.default`. If any of these reroute pushes, Claude Code does not report a push target at all. When reading git status fails, Claude Code reports this push information instead. It is sent as a `claudecode\/pushTarget` message.\n\n**Why**\n\nAn editor or other program connected to Claude Code can learn where a push will really go, without being misled by rewritten remote addresses.\n\n- Area: Git\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}