When I tried to push to Github, it gave me this error.
remote: Permission to NEWUSER/NEWREPO.git denied to OLDUSER.
fatal: unable to access ‘https://github.com/NEWUSER/NEWREPO.git/': The requested URL returned error: 403
But setting the user.name and email globally should have fixed it, No it did not. So I got it fixed by deleting the OLDUSER associated with GitHub from Keychain Access app under Passwords section. Then the push command went successful. :)
this problem are coming in my push code please solve it