This tool is designed to help you automatically remove or replace old email addresses from your entire commit history across multiple GitHub repositories. It's built with privacy and ease of use in mind, enabling you to update commit metadata across all your projects efficiently.
Not a lot of people consciously know this, but all of your commit emails and names are publicly visible and can get scraped.
You can open any commit, simply append .patch
to the url and see the author name and email in clear.
Contains:
From b43c8c728982d5cc52a15759fb3c42dea9920639 Mon Sep 17 00:00:00 2001
From: "hexx.one" <5312542+hexxone@users.noreply.github.com>
Date: Sun, 20 Oct 2024 01:18:11 +0200
Subject: [PATCH] Initial commit
...
Once it has been on the internet, you should generally assume that the information cannot be deleted. It has probably already been duplicated by someone or something, somewhere. Take for example: https://web.archive.org/
So this tool can be more used as a "cleanup" for old/unwanted names etc. in all of your repos.
P.S.: You can also enable the setting reject command line pushes which expose my email
in GitHub.
This will reject pushed which contain and of your github-confirmed email addresses in the future.
This is a purely "source-available" project. I.e.: I will not accept PRs, feature requests or bug reports.
You are on your own.
- I do not accept any responsibility for damages caused by this tool!
- Timetravel has not been invented yet! Make backups of everything before starting!
- The tool cannot modify "Archived" repositories. You have to un-archive them, modify them, and archive them again.
- The tool cannot modify "force-push protected" branches. You have to temporarily disable the rule.
- If you made a PR to some other repo with a wrong email - you are out of luck. The repo owner would have to merge you modified history.
- ALL FORKED Repos will also get out of sync and cannot easily be merged.
- If you work in a team, inform your collaborators about these changes, they will need to re-clone the repository after the modification.
- If your repository is used as submodule, the references to certain commits will break and need to be updated manually.
- make sure to globally set your correct git config email & username from now on.
Also read: how git-filter-repo works: https://github.com/newren/git-filter-repo?tab=readme-ov-file#how-do-i-use-it
- read all of the above
- know what you are doing
- Docker
- create a new api token with repository & user read access (only used for enumerating your public & private projects)
- copy
example.secrets.yaml
to.secrets.yaml
and add your new token
- copy
- modify
settings.yaml
- your dedicated github-no-reply email address can be found on your profile settings
- run it with
docker compose up