git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Rewriting history - email/author change on match?

From
DRDom (shymega) Rodriguez <shymega@shymega.org.uk>
Date
Sep 30, 2024, 22:04 UTC
Message-ID
<biapebw5nsonirhirnunsgu4wnbynt4zdn4rud5kdvwljnpz63@3hc3ujx2gosw>
Hello,

I've got a few private repos that I am the sole contributor to, but some commits are under my usual Git author+email. These commits are automated, and I'd like to rewrite commits that match the commit message (the message is consistent) and the 'old' author+email to a new author+email, but retain the commit message.

The tool that springs to mind is `git-filter-branch`. However, I've also come across `git-filter-repo` on GitHub.

I'm a little confused, and I wanted to ask for advice on the list. I did try using `git-filter-branch`, but got lost quickly with `--commit-filter/`--msg-filter`.

I also found a 'users' Git mailing list on Google Groups, but by the warning I got from Google, it has a spam issue. If this is the wrong place to ask for help, please do let me know.

Thank you.

Best wishes, -- Dom Rodriguez GPG Fingerprint: EB0D 45E6 D0DC 1BA1 A2B5 FC24 72DC F123 1E54 BD43

Next: Kristoffer Haugsbakk
Message 1 of 2 in “Rewriting history - email/author change on match?”
  1. Dom (shymega) RodriguezSep 30, 2024
  2. Kristoffer HaugsbakkSep 30, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.