---
id: 20260913-T0-17
title: "Claude Code 2.1.270修复只读git命令误报权限问题"
title_en: "Claude Code 2.1.270 Fixes False Permission Prompts for Read-Only Git Commands"
url: https://ai.daily.yangsir.net/daily/20260913-T0-17
issue_date: 2026-09-13
publish_date: 2026-09-12T19:45:44.000Z
category: release
source_name: "Claude Code Releases"
source_url: https://github.com/anthropics/claude-code/releases/tag/v2.1.270
---

# Claude Code 2.1.270修复只读git命令误报权限问题

Claude Code发布2.1.270版本，修复了一个回归问题：会话运行一段时间后，Bash中的只读git命令会意外弹出权限请求。该问题由2.1.269版本引入，影响开发者在长时间会话中的操作流畅度。此次更新让只读git命令恢复静默执行，不需要反复确认权限。使用Claude Code的开发者升级后可以避免这一干扰。

## English Version

**Claude Code 2.1.270 Fixes False Permission Prompts for Read-Only Git Commands**

Claude Code released version 2.1.270, fixing a regression where read-only git commands in Bash unexpectedly prompted for permission after a session had been running for a while. The issue was introduced in 2.1.269 and disrupted workflow during long sessions. The update restores silent execution for read-only git commands, eliminating repeated permission confirmations. Developers using Claude Code can upgrade to avoid this interruption.

---

**来源**：[Claude Code Releases](https://github.com/anthropics/claude-code/releases/tag/v2.1.270)

**详情页**：https://ai.daily.yangsir.net/daily/20260913-T0-17

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*