refactor: 将代理的 Git 操作规则引用到 copilot-instructions.md

This commit is contained in:
fujie
2026-01-03 16:27:37 +08:00
parent 88aa7e156a
commit fe497cccb7
2 changed files with 27 additions and 4 deletions

View File

@@ -94,9 +94,6 @@ Before committing:
## 5. Git Operations (Agent Rules)
**CRITICAL RULE FOR AGENTS**:
Strictly follow the rules defined in `.github/copilot-instructions.md`**Git Operations (Agent Rules)** section.
- **No Auto-Push**: Agents **MUST NOT** automatically push changes to the remote `main` branch.
- **Local Commit Only**: All changes must be committed locally.
- **User Approval**: Pushing to remote requires explicit user action or approval.