5769c1cd22
- Auto-Registration-Bug behoben (register_project/get_project_id/resolve_project Trennung) - 25 Tests gruen (Pytest) - block_compactor-Tool refactored (Option B: Soft-Check statt Hard-Block) - 4 Restbaustellen gefixt - DB-Schema: plugin_settings-Tabelle hinzugefuegt - 3 Schattenprojekte aus DB geloescht - Plan v3 + Refactor-Plan + Worklog dokumentiert
33 lines
1.0 KiB
Markdown
33 lines
1.0 KiB
Markdown
---
|
|
name: git-workflow
|
|
description: Git discipline for plugin development - branch, commit after logical blocks, no main push without approval.
|
|
tags: ['operations', 'git']
|
|
---
|
|
|
|
# Git Workflow
|
|
|
|
## Purpose
|
|
Enforce git discipline: branch, commit after logical blocks, no push to main without explicit user approval.
|
|
|
|
## When to Use
|
|
After each implementation block or when project state files are updated.
|
|
|
|
## When Not to Use
|
|
When git is not available or the project is not yet a git repository.
|
|
|
|
## Procedure
|
|
1. Check git availability (`which git`)
|
|
2. Ensure working on feature branch (`git branch --show-current`)
|
|
3. Stage changed files (`git add <files>`)
|
|
4. Write descriptive commit message (docs:, feat:, test:, deploy:)
|
|
5. Commit changes (`git commit -m "..."`)
|
|
6. Do NOT push to main without explicit user approval
|
|
7. Update .a0/worklog.md with commit reference
|
|
|
|
## Quality Gates
|
|
Commit after logical blocks, no main push without approval, descriptive messages.
|
|
|
|
## See Also
|
|
- Tool: `git` (core Agent Zero tool)
|
|
- Skill: `git-workflow` (global)
|