[GH-ISSUE #17] [feature]Easy prompt overrides per repo #12

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/17

So I have this project working to a minimal satisfaction level I have found my sell having to patch the prompts in the package get better results. This is working alright but some of my projects have a very different theme and doesn't work well on those repos. We need a way to customize the system and user prompts on a per-repo level, but it might also be useful to be able to tweak the default config in a global way.

If instead of having the default templates baked into the source code, what if they were installed in ~/.git-rewrite-commits.conf so they can be overwritten globally and then also look in the repo for a similar local override.

Originally created by @RyanHope on GitHub (Nov 16, 2025). Original GitHub issue: https://github.com/f/git-rewrite-commits/issues/17 So I have this project working to a minimal satisfaction level I have found my sell having to patch the prompts in the package get better results. This is working alright but some of my projects have a very different theme and doesn't work well on those repos. We need a way to customize the system and user prompts on a per-repo level, but it might also be useful to be able to tweak the default config in a global way. If instead of having the default templates baked into the source code, what if they were installed in ~/.git-rewrite-commits.conf so they can be overwritten globally and then also look in the repo for a similar local override.
kerem 2026-02-27 19:20:53 +03:00
Author
Owner

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

That makes very sense! I'm going to think about it!

<!-- gh-comment-id:3539447737 --> @f commented on GitHub (Nov 16, 2025): That makes very sense! I'm going to think about it!
Author
Owner

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

Now we have support for COMMIT_MESSAGE.md file. Read the docs here.

<!-- gh-comment-id:3540245160 --> @f commented on GitHub (Nov 17, 2025): Now we have support for `COMMIT_MESSAGE.md` file. [Read the docs here.](https://github.com/f/git-rewrite-commits/tree/master?tab=readme-ov-file#custom-project-guidelines-with-commit_messagemd)
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#12
No description provided.