Skip to content

Instantly share code, notes, and snippets.

@itsgg
Last active January 14, 2025 13:13
Show Gist options
  • Save itsgg/edae99c4ccaf78fbbbe5c79c22dc1000 to your computer and use it in GitHub Desktop.
Save itsgg/edae99c4ccaf78fbbbe5c79c22dc1000 to your computer and use it in GitHub Desktop.
Auto-Generate Git Commit Messages with Shell-GPT
git config --global alias.aicommit '!f() { git add -A && git diff --staged | sgpt "Create a concise commit message with: summary (50 chars) + optional bullet points for details. Do not add headings." | git commit -F -; }; f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment