When I push my repositories to GitHub, all the commits are signed by another user.
I've set the user name, email & password in the git config file and they are correct.
I also run git remote add origin ...
and git remote set-url origin ...
to set the new url before pushing the repository.
Previously, I had the repositories on GitLab where they were also incorrectly signed by the other user.
How can I get the commits to be signed by the new user?