Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
| en:git [2026/04/02 09:17] – [Introduction to Git and GitHub for Musicology Editorial Work] martin | en:git [2026/04/03 09:40] (aktuell) – Add some notes about imperative mood in Git messages piasteuck | ||
|---|---|---|---|
| Zeile 231: | Zeile 231: | ||
| <code bash> | <code bash> | ||
| - | git commit -m "Corrected | + | git commit -m "Correct |
| </ | </ | ||
| Zeile 240: | Zeile 240: | ||
| Good examples: | Good examples: | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| + | |||
| + | You may wonder why the grammar in these sentences seems a bit odd. | ||
| + | |||
| + | Most projects follow a common convention for commit messages: the subject line is written in imperative mood, as if giving an instruction. So " | ||
| + | |||
| + | A helpful trick to check: your message should complete the sentence //"If applied, this commit will ..."// | ||
| + | |||
| + | * //If applied, this commit will// **Correct clef encoding in measure 1** ✓ | ||
| + | * //If applied, this commit will// **Corrected clef encoding in measure 1** ✗ | ||
| + | |||
| + | This matches the style Git itself uses for auto-generated messages (for example from '' | ||
| Bad examples: | Bad examples: | ||