claude-code - 💡(How to fix) Fix [BUG] Claude ignored the definition in settings.json to not create a new branch when assisting in code

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

Claude will create an automatic branch, work the changes in said branch, and open it to be merged in master/main

Code Example

"autoCommit": false,
 "createBranchPerTask": false

---



---

"autoCommit": false,
 "createBranchPerTask": false
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

I came across this small bug where Claude-Code ignores the settings defined in its folder (eg.: user/.claude) The setting defined was to not allow Claude-Code to create new branches spontaneously as it was assisting coding in a closed project with a defined branch to work on. It ignored the settings once, so I restarted Claude (desktop app) and started a new thread. Yet, it keep ignoring the configuration defined.

The settings used:

"autoCommit": false,
 "createBranchPerTask": false

Claude itself acknowledged that it ignored that configuration and recommended me to open a bug.

What Should Happen?

Claude should have respected the configuration in its settings file and not created automatic branches to work and then asked that branch to be merged with main/master. It should have respected the current branch set, as it once did, and kept the work within its boundaries. The configurations in its settings file were trampled over.

Error Messages/Logs

Steps to Reproduce

Include the settings as follows in the settings.json, in a user/.claude folder.

"autoCommit": false,
 "createBranchPerTask": false

Have a project with any Git versioning system. Create a new branch. Open the Claude app for Windows (Windows 11). Start any thread with any coding request.

Claude will create an automatic branch, work the changes in said branch, and open it to be merged in master/main

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

v1.6608.1

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING