Pushes going to wrong account

I created a temporary account to get a belated PAT. Now I can’t get my pushes to go to the real one. I push using the original, real account name (RodneyBates) from command line.
I have changed to email address in the bogus account to one the the real account does not. My local git config has the email address that the real account has. I also changed my bogus name (OrlandoDiLasso)in the bogus account to my real name. But the pushes still are labelled as coming from OrlandoDiLasso

rodney.m.bates@acm.org.

Solved. I was pushing from a wrong local git repo, with the wrong user.email address.