[GH-ISSUE #16] Model override for hooks #11

Closed
opened 2026-02-27 19:20:53 +03:00 by kerem · 2 comments
Owner

Originally created by @RyanHope on GitHub (Nov 16, 2025).
Original GitHub issue: https://github.com/f/git-rewrite-commits/issues/16

Need a way to override the model used without having to manually edit the hook scripts each time

Originally created by @RyanHope on GitHub (Nov 16, 2025). Original GitHub issue: https://github.com/f/git-rewrite-commits/issues/16 Need a way to override the model used without having to manually edit the hook scripts each time
kerem closed this issue 2026-02-27 19:20:53 +03:00
Author
Owner

@f commented on GitHub (Nov 16, 2025):

Fixed with the 0.6.91!

# Set model locally for current repo
git config hooks.providerModel "gpt-4"

# Set model globally for all repos
git config --global hooks.providerModel "gpt-3.5-turbo"

# Or use environment variable
export GIT_COMMIT_MODEL="llama3.2"  # Unix/macOS
set GIT_COMMIT_MODEL=llama3.2      # Windows
<!-- gh-comment-id:3538382072 --> @f commented on GitHub (Nov 16, 2025): Fixed with the 0.6.91! ``` # Set model locally for current repo git config hooks.providerModel "gpt-4" # Set model globally for all repos git config --global hooks.providerModel "gpt-3.5-turbo" # Or use environment variable export GIT_COMMIT_MODEL="llama3.2" # Unix/macOS set GIT_COMMIT_MODEL=llama3.2 # Windows ```
Author
Owner

@RyanHope commented on GitHub (Nov 16, 2025):

Thanks

<!-- gh-comment-id:3538775409 --> @RyanHope commented on GitHub (Nov 16, 2025): Thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-rewrite-commits#11
No description provided.