Skip to content

Instantly share code, notes, and snippets.

View AlyxPink's full-sized avatar
☺️

Alyx AlyxPink

☺️
View GitHub Profile
@AlyxPink
AlyxPink / deadname_rewriter.sh
Created March 18, 2024 09:38
A far from perfect script helping you out to rewrite your author name and email in the git history of your repositories
# !/bin/bash
# Please don't trust me, I made this thing in a hurry and I'm not a Git expert.
# I copy pasted stuff from here and there, quickly read some git documentation and
# made some trial and error locally.
# I've noticed that for some repositories it did not work, and also some commits went from "Verified" to "Unverified".
# I'm not sure why, I'm not sure how to fix it, the public keys match sooooo. That's an issue for future me.
# Create a mailmap in ~/.config/git/.mailmap (or anywhere else as long as you use it in the next command):
#