notes.malicious.site


change git repository commit username


#!/bin/sh

git filter-branch --env-filter '

CORRECT_NAME="user"

CORRECT_EMAIL="user@example.com"

export GIT_COMMITTER_NAME="$CORRECT_NAME"

export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"

export GIT_AUTHOR_NAME="$CORRECT_NAME"

export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL" -f --tag-name-filter cat -- --branches --tags

git push --force --tags origin 'refs/heads/*'