Claude Code · Automation and CI
Draft a commit message
Ask for a commit message from the staged changes.
git diff --staged | claude -p "write a concise commit message"
Official Claude Code documentation
Claude Code · Automation and CI
Ask for a commit message from the staged changes.
git diff --staged | claude -p "write a concise commit message"
Official Claude Code documentation
Was this page helpful?