Git and PR Workflow
You can ask Claude Code to handle git steps in plain English — it runs the real git commands for you.
Everyday Requests
commit my changes with a clear messagecreate a new branch for this featureopen a pull request for this changeClaude Code stages the right files, writes the commit message, and runs the actual git and gh (GitHub CLI) commands. You still see and approve each command first, unless you are in a more permissive mode.
A Safer Pattern
Ask it to pause before the risky step:
create a PR for this feature, but ask me to review the diff before you pushClaude Code will not force-push, delete branches, or skip commit hooks unless you clearly ask for it. Treat those the same way you would treat them yourself — confirm before doing anything hard to undo.
Reviewing Before You Commit
/diffShows your uncommitted changes so you can look them over yourself, separate from asking Claude to explain them.
Next → Subagents
Last updated on