Git Workflow
CRITICAL RULES
- NIEMALS ohne Erlaubnis pushen —
git pushNUR nach expliziter Bestätigung - Issue-Nummer bei jedem Commit — Vor jedem Commit nach der Issue-Nummer fragen
- Dokumentation vor Push — CLAUDE.md, docs/, README müssen Änderungen widerspiegeln
- Branch Protection — Direct push to
mainis blocked. Always use feature branch → PR → merge. - Co-Authored-By — Jeder Commit muss die Co-Author-Zeile enthalten
Commit Message Format
type(scope): Kurze Beschreibung (#issue)
Längere Beschreibung falls nötig.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Example: feat(satellites): Add monitoring dashboard (#25)
Commit Types
| Type | Usage |
|---|---|
feat | Neues Feature |
fix | Bugfix |
docs | Dokumentation |
refactor | Code-Refactoring |
test | Tests hinzufügen/ändern |
chore | Wartung, Dependencies |
Workflow
- Create feature branch:
git checkout -b type/short-description - Make changes + write tests (TDD)
- Update documentation (CLAUDE.md, docs/)
- Ask for issue number
- Commit with proper format
- Ask user: "Soll ich pushen?"
- Only after confirmation:
git push -u origin branch-name - Create PR:
gh pr create --title "type(scope): Description (#issue)" --body "..."
PR Format
bash1gh pr create --title "type(scope): Description (#issue)" --body "$(cat <<'EOF' 2## Summary 3- Bullet points describing changes 4 5## Test plan 6- [ ] Tests added/updated 7- [ ] Manual testing done 8 9🤖 Generated with [Claude Code](https://claude.com/claude-code) 10EOF 11)"