Committing changes
The/commit command analyzes your staged changes and generates a commit message.
1
Stage your changes
Use git as normal to stage files:
2
Run /commit
Inside the Claude Code REPL:Claude analyzes the diff and proposes a commit message.
3
Confirm or edit
Review the proposed message, edit if needed, then confirm to create the commit.
Viewing diffs
The/diff command shows your current working tree or staged changes:
Branch management
Use/branch to create and switch branches:
Reviewing PR comments
The/pr_comments command fetches open review comments from your current GitHub PR:
Worktree isolation
For large refactors, Claude Code supports git worktrees to isolate changes:EnterWorktreeTool to create an isolated git worktree. Exit with ExitWorktreeTool when done.