Skip to content

Instantly share code, notes, and snippets.

View antoinejeannot's full-sized avatar
🏡
Working from home

Antoine Jeannot antoinejeannot

🏡
Working from home
View GitHub Profile
@antoinejeannot
antoinejeannot / prepare-commit-msg
Last active December 15, 2023 09:53
Minimalist & Easy-to-hack LLM-powered git message
#!/bin/bash
###########################################################################
# Automatically generates a git commit message based on `git diff` and a LLM
# Minimalist & Easy-to-hack implementation:
# . It relies on git hooks
# . it requires `jq` (brew install jq) for json management
#
# . Usage: prefix your git commit message by "auto"
# .. git commit -m "auto"