Wenn ich git commit -v
diese Nachricht erhalte, wird standardmäßig folgende Meldung angezeigt:
# Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch master # Changes to be committed: # modified: foo.txt # # ------------------------ >8 ------------------------ # Do not modify or remove the line above. # Everything below it will be ignored. diff --git a/foo.txt b/foo.txt index 88545b8..9fcffaf 100644
Für Ihren Fall ist dies der Teil, den Sie nicht ändern sollten:
# ------------------------ >8 ------------------------ # Do not modify or remove the line above. # Everything below it will be ignored.
Wenn Sie diese Zeilen nicht sehen, haben Sie sich möglicherweise git commit
auf eine seltsame Weise konfiguriert . In diesem Fall überprüfen Sie mit diesem Befehl und konsultieren Sie git help config
und git help commit
:
git config -l |grep "^commit\."