docs/agents/git-workflow.md
--force without explicit approvalForbidden commands:
git push origin maingit merge feature-branch while on mainAll changes to main MUST go through pull requests.
"Explicitly asked" = user says "amend", "squash", "rebase", or "fix up the commit".
"Looks good" or "go ahead" is NOT permission to rewrite history.
git checkout main
git pull origin main
git checkout -b feature/your-branch-name
git add <specific-files> # NEVER blindly add everything
git commit -m "type(scope): description"
See docs/agents/pr-conventions.md for commit message format.
npm run l # Lint changed files
npm run f # Format changed files
Fix any errors before proceeding.
git fetch origin main
git merge origin/main
Resolve any conflicts before pushing.
git push -u origin feature/your-branch-name
gh pr create --title "type(scope): description" --body "PR description"
Wait for CI checks to pass and code review approval before merging.
git add . - there may be unrelated files