git diff HEAD~1 | gemini -p 'Summarize what changed in this commit'

Category: Gemini CLI

git diff HEAD~1 | gemini -p 'Summarize what changed in this commit'

Pipe the latest git diff to Gemini CLI for an automatic commit summary

Pipes the diff of the latest commit to Gemini and asks it to write a human-readable summary of the changes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.