{"id":16551171,"url":"https://github.com/michaelcurrin/rewrite-git-author","last_synced_at":"2025-10-28T18:31:26.196Z","repository":{"id":37472928,"uuid":"380005163","full_name":"MichaelCurrin/rewrite-git-author","owner":"MichaelCurrin","description":"The easy way to replace an email address across all commits in a repo","archived":false,"fork":false,"pushed_at":"2022-10-11T13:35:39.000Z","size":59,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-01T17:11:12.582Z","etag":null,"topics":["author","bash","commit","git-author","rebase","shell","tool"],"latest_commit_sha":null,"homepage":"https://michaelcurrin.github.io/rewrite-git-author/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MichaelCurrin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-24T17:37:21.000Z","updated_at":"2024-06-23T22:30:26.000Z","dependencies_parsed_at":"2023-01-19T12:30:54.830Z","dependency_job_id":null,"html_url":"https://github.com/MichaelCurrin/rewrite-git-author","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Frewrite-git-author","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Frewrite-git-author/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Frewrite-git-author/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichaelCurrin%2Frewrite-git-author/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichaelCurrin","download_url":"https://codeload.github.com/MichaelCurrin/rewrite-git-author/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238700277,"owners_count":19515896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["author","bash","commit","git-author","rebase","shell","tool"],"created_at":"2024-10-11T19:36:32.070Z","updated_at":"2025-10-28T18:31:26.190Z","avatar_url":"https://github.com/MichaelCurrin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rewrite Git Author\n\u003e The easy way to replace an email address across all commits in a repo\n\n[![GitHub tag](https://img.shields.io/github/tag/MichaelCurrin/rewrite-git-author?include_prereleases=\u0026sort=semver)](https://github.com/MichaelCurrin/rewrite-git-author/releases/)\n[![License](https://img.shields.io/badge/License-MIT-blue)](#license)\n\n[![Made with Bash](https://img.shields.io/badge/Bash-\u003e=3-blue?logo=gnu-bash\u0026logoColor=white)](https://www.gnu.org/software/bash/)\n\nA simple tool to replace the **email address** for **all** commits in a repo by a user - using a single command. The timestamps and patches of the commits are left as is.\n\n\n## ⚠️ **Warning**\n\nSince a rebase is done here, this tool rewrites your Git history of commits. So you'll have to force-push your changes and get everyone to pull in the changes. \n\nFurther, _every_ commit in the history back to the _first_ commit will get rewritten, even if _nothing_ changed in the commits. So don't use this to just fix a few recent commits - rather fix those by hand, or submit an issue or PR improve this tool to only go back to a certain commit!\n\nSee further warnings in the [git filter-branch][] docs.\n\n[git filter-branch]: https://git-scm.com/docs/git-filter-branch\n\n\n## Sample usage\n\nRun the shell script:\n\n```sh\n$ rewrite_author.sh OLD_EMAIL NEW_MAIL\n```\n\nThen check your Git log and force push if you're satisfied.\n\ne.g. If your ran this:\n\n```sh\n$ rewrite_author.sh old@example.com new@another-example.com\n```\n\nThen your commits will be changed from the old email like:\n\n```\nAuthor: Foo Bar old@example.com\nDate:   Thu Jun 24 20:08:18 2021 +0200\n```\n\nTo the new email:\n\n```\nAuthor: Foo Bar new@another-example.com\nDate:   Thu Jun 24 20:08:18 2021 +0200\n```\n\n\n## Alternative\n\nInstead of using this tool, see [git filter-name](https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/version-control/git/commands/filter-name.html).\n\n\n## Documentation\n\n\u003cdiv align=\"center\"\u003e\n\n[![view - Documentation](https://img.shields.io/badge/view-Documentation-blue?style=for-the-badge)](https://michaelcurrin.github.io/rewrite-git-author/ \"Go to project documentation\")\n\n\u003c/div\u003e\n    \nSee that for how to set up and run this tool and for more info on how this works.\n\nIt also has instructions for how to update an email address for a _single commit_ with plain Git.\n\n\n## License\n\nReleased under [MIT](/LICENSE) by [@MichaelCurrin](https://github.com/MichaelCurrin).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcurrin%2Frewrite-git-author","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelcurrin%2Frewrite-git-author","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcurrin%2Frewrite-git-author/lists"}