Script to fix Co-authored-by lines produced by Google Jules to match my Git config.
Created
May 12, 2026 16:38
-
-
Save dolmen/799718cf5d011faf88cdc557c14f68ef to your computer and use it in GitHub Desktop.
git-fix-jules-commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Jules, by Google, isn't able to properly apply my instructions about co-authorship: it use my GitHub public | |
| # email instead of the email I want to use. | |
| # So this script allows to fix the Co-authored-by that appears in commit messages to match my git config. | |
| # | |
| # Author: Olivier Mengué | |
| GIT_EDITOR='sed -i "" -e "s/Co-authored-by: .*/Co-authored-by: '"$(git config user.name) <$(git config user.email)"'>/"' \ | |
| git commit --amend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment