Skip to content

Instantly share code, notes, and snippets.

View martinezlc99's full-sized avatar
🤞

Luis Carlos martinezlc99

🤞
  • Midwest USA
  • 20:53 (UTC -06:00)
View GitHub Profile
@martinezlc99
martinezlc99 / add_to_zshrc.sh
Created November 28, 2024 17:26 — forked from karpathy/add_to_zshrc.sh
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# 1) gets the current staged changed diff
# 2) sends them to an LLM to write the git commit message
# 3) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
gcm() {

Keybase proof

I hereby claim:

  • I am martinezlc99 on github.
  • I am j0nnyf1ve (https://keybase.io/j0nnyf1ve) on keybase.
  • I have a public key ASDdnuhzTq6pZPOHe_TKYQ_MF3Mb82aK_PYegT_YgJf9_Qo

To claim this, I am signing this object: