-m
flag when running git commit
, which will result in Git opening a file in your default text editor (see this Stack Overflow answer for how to configure which editor to use), and when you edit that file and exit, Git will use the file’s contents as the commit message.