o4-mini-2025-04-16· OpenAI LMArena Human Preference 140K
Layout for the Header Area and basic Navigation. Wie schreibe ich einen passenden…
- User
Layout for the Header Area and basic Navigation. Wie schreibe ich einen passenden git-commit
- Assistant
Hier ein kurzer Leitfaden sowie ein Beispiel, wie du aus deinem „Layout for the Header Area and basic Navigation“ -Work ein sauberes Git-Commit machst.
1. Commit-Richtlinien (imperative, kurz, prägnant)
- Subject Line (max. 50 Zeichen)
- Verwende den Imperativ: „Add“, „Fix“, „Update“…
- Kein abschließender Punkt.
- Optional: Scope in Klammern, z. B.
(header),(nav).
- Leerzeile zwischen Betreff und Body.
- Body (optional)
- Erklärt, was und warum (nicht wie).
- Wrap bei ~72 Zeichen.
- Footer (optional)
- Verweise auf Issues/Tickets: z. B.
Closes #123.
- Verweise auf Issues/Tickets: z. B.
2. Konkretes Beispiel
Angenommen, du hast das Header-Layout implementiert und eine Grund-Navigation hinzugefügt:
git add src/components/Header.js src/styles/header.css git commitIm Editor könntest du schreiben:
Subject:
feat(header): implement layout and basic navigationBody:
- Created Header component with logo and main nav links - Added responsive CSS grid for desktop and mobile - Updated router to handle home/about/contact routes Closes #42Und das Ganze als Markdown-Codeblock:
feat(header): implement layout and basic navigation - Created Header component with logo and main nav links - Added responsive CSS grid for desktop and mobile - Updated router to handle home/about/contact routes Closes #42
3. Deutsche Variante
Wenn du lieber auf Deutsch schreibst:
feat(header): Header-Layout und Grund-Navigation implementiert - Header-Komponente mit Logo und Hauptmenü erstellt - Responsives Grid für Desktop und Mobile hinzugefügt - Router um Home/About/Contact-Routen erweitert Closes #42
4. Zusammenfassung
- Kurz & prägnant in der Betreffzeile
- Imperativ-Stil: „Implement“, „Add“, „Fix“, …
- Trenne Subject / Body mit einer Leerzeile
- Im Body: Was wurde geändert? Warum?
- Optional: Issue-Referenzen im Footer
Mit diesem Schema bleiben deine Commits klar, einheitlich und nachvollziehbar! 🚀
- Subject Line (max. 50 Zeichen)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.