Last Updated: February 25, 2016
·
579
· mdahlstrand

Is Git too quiet? Make it talk!

Ever wanted Git to be more verbal, and to read to you the last commit message?

If so, run the line below in Terminal to setup the speak git alias:

git config --global alias.speak '!git log --pretty=format:'%s' -n 1 | say &'

The script makes use of the excellent formatting options for git log, and pipes the output to the say command, shipped with OS X. The possibility to execute an alias as a shell command has been available since version 1.5.0, and enables some very powerful things.

The only thing that now remains is to figure out when would one ever need this...?