Git Workflows
Use this guide when you want BMO to stage, summarize, commit, branch, or inspect repository history while keeping confirmation on destructive operations. The examples show safe prompts for common git tasks.
Staging and committing
Section titled “Staging and committing”Stage all changes and commit with a descriptive messageStage only the files in internal/api/ and commitWrite a commit message for my staged changesBMO runs git add and git commit via the bash tool. You can ask it to follow any commit message convention:
Commit using conventional commits format (feat: / fix: / chore:)Commit with a detailed body explaining why, not just whatReviewing diffs
Section titled “Reviewing diffs”Show me what changed since the last commitSummarize my changes as if writing a PR descriptionWhat files did I modify today?BMO can run git diff, git log --oneline, and git status and then explain the output.
Creating branches
Section titled “Creating branches”Create a new branch called feat/rate-limitingSwitch to the fix/auth-bug branchRebasing and merging
Section titled “Rebasing and merging”Rebase my branch onto mainSquash my last 3 commits into oneBMO will run the git commands but will ask for confirmation on destructive operations.
Auto-Checkpoint
Section titled “Auto-Checkpoint”Auto-Checkpoint automatically saves a git commit at regular intervals during a session. This provides a safety net without requiring you to ask for commits.
To enable:
[options]auto_checkpoint = trueauto_checkpoint_interval = 5 # every 5 tool callsWorktree isolation
Section titled “Worktree isolation”For multi-agent workflows where parallel agents need isolated working trees, see Worktree Isolation.
Project initialization
Section titled “Project initialization”On a new project:
/initThis creates the configured project context file (AGENTS.md by default) with
project structure, build commands, and key context, making later git workflows
aware of the project conventions.