git commit -F changelog-entry.md

Category: Git - Core

git commit -F changelog-entry.md

Commit using a message read from a file

Reads the commit message from the named file instead of the editor or -m. Useful for changelog-driven workflows and for long or script-generated messages. Trailing whitespace and comment lines are cleaned according to your cleanup mode.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.