I committed with the wrong name and email configured

If it’s a single commit, amend it

$ git commit --amend --no-edit --author "New Authorname <authoremail@mydomain.com>"

An alternative is to correctly configure your author settings in git config --global author.(name\|email) and then use

$ git commit --amend --reset-author --no-edit

If you need to change all of history, see the man page for git filter-branch.

Source: Flight rules for Git (CC BY-SA 4.0 License)

Lots of good tips here.