Skip to content

Instantly share code, notes, and snippets.

@jeffdrumgod
Last active July 13, 2021 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffdrumgod/9e439855ad812f071acf5c9eb9a85a79 to your computer and use it in GitHub Desktop.
Save jeffdrumgod/9e439855ad812f071acf5c9eb9a85a79 to your computer and use it in GitHub Desktop.
Change git history
git filter-branch -f --commit-filter '
    if [ "$GIT_COMMITTER_NAME" = "Bruno Lollato" ];
    then
            GIT_COMMITTER_NAME="Jefferson Rafael Kozerski";
            GIT_AUTHOR_NAME="Jefferson Rafael Kozerski";
            GIT_COMMITTER_EMAIL="jefferson.rafael@infracommerce.com.br";
            GIT_AUTHOR_EMAIL="jefferson.rafael@infracommerce.com.br";
            git commit-tree "$@";
    else
            git commit-tree "$@";
    fi' HEAD
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment