The COMMIT-EDITMSG represents the final step before a commit object is permanently written to your repository’s object database. You are not just "typing a message"; you are editing the metadata that will be cryptographically hashed and stored forever (or until a rebase).

: Any line starting with # in the COMMIT-EDITMSG file is ignored by Git and won't appear in the final history.