Created
January 6, 2026 22:29
-
-
Save da1z/f4638dda8ba4b1db1843fa65d46e0cca to your computer and use it in GitHub Desktop.
Generate commit messages with claude code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gp() { | |
| git add . | |
| git commit -m "$(git diff --cached | claude -p --model haiku --output-format json --json-schema '{"type":"object","properties":{"commit_message":{"type":"string"}},"required":["commit_message"]}' "Generate a commit message" | jq -r '.structured_output.commit_message')" | |
| git push | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment