git config shows correct user name and email and yet I cannot ever git push to my own repo on GitHub. It always says some old username that was used
git config user.name mqshaikh8
git config user.email [email protected]
git push origin master
remote: Permission to mqshaikh8/amigo.git denied to kshaikh99. fatal: unable to access 'https://github.com/mqshaikh8/amigo.git/': The requested URL returned error: 403
git remote --v origin https://github.com/mqshaikh8/amigo.git (fetch) origin https://github.com/mqshaikh8/amigo.git (push)
git bash
/git for windows
by any chance? – Vivickuser.name
anduser.email
settings have nothing to do with authentication. They're used for creating commits, not for talking to remotes. You need to provide your HTTPS credentials or an SSH key. – Chris