Skip to content

Instantly share code, notes, and snippets.

@israelalagbe
israelalagbe / replace.sh
Created June 16, 2023 18:42
Replace git commit author
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL=""
CORRECT_NAME=""
CORRECT_EMAIL=""
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then