how to change the email and username for a local repository github code example Example: change git username and email $ git config --global user.email "[email protected]"