-m
flag when running git commit
, which will result in Git opening up a file in your default text editor (see here 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.