Skip to content

Clarify git commit restrictions for local vs web Claude Code#252

Merged
jancurn merged 1 commit into
mainfrom
claude/elegant-darwin-d64Mu
May 30, 2026
Merged

Clarify git commit restrictions for local vs web Claude Code#252
jancurn merged 1 commit into
mainfrom
claude/elegant-darwin-d64Mu

Conversation

@jancurn

@jancurn jancurn commented May 30, 2026

Copy link
Copy Markdown
Member

Summary

Updated the CLAUDE.md guidance to clarify that the restriction on adding files to git and committing applies only to local interactive Claude Code sessions, not to Claude Code on the web where committing and pushing changes is part of the expected workflow.

Changes

  • Expanded the git commit restriction note to distinguish between local development environments and the managed remote execution environment (Claude Code on the web)
  • Clarified that committing and pushing changes to the designated branch is expected behavior in the web-based Claude Code environment

Details

This change removes ambiguity in the development guidelines by explicitly stating that the "never commit yourself" rule is specific to local interactive Claude Code sessions running on the user's own machine, while acknowledging that the web-based Claude Code environment has different expectations where commits and pushes are part of the normal workflow.

https://claude.ai/code/session_01QdUs46nC48Q9senf85NSDc

The "Never add files to git or commit yourself" instruction was meant
for local interactive development, not Claude Code on the web, where
committing and pushing to the designated branch is expected.

https://claude.ai/code/session_01QdUs46nC48Q9senf85NSDc
@jancurn jancurn merged commit d78af0e into main May 30, 2026
6 checks passed
@jancurn jancurn deleted the claude/elegant-darwin-d64Mu branch May 30, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants