Skip to content

Instantly share code, notes, and snippets.

@itsgg
Created January 14, 2025 13:22
Show Gist options
  • Select an option

  • Save itsgg/8475001d8995151125a4b2253e52dcf5 to your computer and use it in GitHub Desktop.

Select an option

Save itsgg/8475001d8995151125a4b2253e52dcf5 to your computer and use it in GitHub Desktop.
Auto-Review Git Changes
git config --global alias.review '!f() { git add -A && git diff --staged | sgpt \"Generate a detailed code review\"; }; f'
@itsgg
Copy link
Author

itsgg commented Sep 23, 2025

git config --global alias.aireview '!f() { git add -A && git diff --staged | sgpt "Generate a detailed code review"; }; f'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment