Commit-editmsg

Your $EDITOR environment variable is misconfigured, or your editor crashed. Check with echo $EDITOR . Fix: git config --global core.editor "nano" (or your preferred editor).

When you initiate a commit, Git opens your default text editor (like Vim, Nano, or VS Code) and populates it with a boilerplate COMMIT_EDITMSG . This file usually contains: A blank space at the top : This is where you type your subject line and body. Commented-out metadata : Lines starting with COMMIT-EDITMSG

At its core, COMMIT-EDITMSG is a temporary text file that Git creates in your local .git directory. Specifically, you can find it at .git/COMMIT_EDITMSG . When you run a command like git commit (without the -m flag), Git opens your default text editor and loads the contents of this file. Your $EDITOR environment variable is misconfigured, or your