Commit with wrong username to github
You can change the last commit locally with
git commit --amend --author="Author Name <[email protected]>"
Then do a
git push --force
This will force the authored commit over the top of the old one.
1- configure your new username and email with
change username: git config username.user <username>
change email: git config username.email <email>
2- run this command git commit --amend -C HEAD --reset-author
3- run this command git push --force
This will change the other in the last commit.