Git workflow
Inspect changes, choose commit scope and explicitly authorize pushes or PRs.
Start in the correct repository
Open the Git project in Code mode and verify its branch and directory. Inspect status and diff, identify task-owned changes, and preserve unrelated staged or uncommitted work.
Review changes
Use the file diff view or /diff. Specify the branch/PR and review scope, and consider tests and runtime evidence. Git settings manage identity, GitHub access, review and workflow preferences.
Commit and publish
Use a request such as “Commit only this task's changes; show the diff first.” Check the file list, message and target branch before authorizing a push or PR. Real GitHub permissions and credentials still apply.
Older docs presented /commit and /commit-push-pr as universally available. They belong to the current source's internal command collection. Use natural-language Git tasks or commands actually shown by /help; do not enable internal environment settings.
Other entries
Use /branch according to its help, /pr-comments for supported comment inspection and /install-github-app for its configuration flow. See code review for review entries.
Viewing a diff should not alter the index. Check remote and repository before pushing. Preserve existing work and confirm the effects of reset, cleanup, force-push or branch deletion.