# when parsing the final message..git/COMMIT_EDITMSG.#).COMMIT_EDITMSG after the commit succeeds. However, in many cases, the file persists with the last commit message until the next commit starts. Do not rely on it for permanent storage.The COMMIT-EDITMSG file enforces (or at least encourages) best practices that -m actively discourages.
You saved an empty file, or a file with only comments (#). Git reads COMMIT-EDITMSG, strips comments, and sees nothing. Fix: Run git commit again and write a message. COMMIT-EDITMSG