I created repo on the GitHub remote, cloned it on the local. I configured Git username and email using:
git config --local user.name "firstname lastname"
git config --local user.email "first.last@gmail.com"
git remote show origin is also giving the correct upstream But when I add files, commit and try to push using:
git push origin master
I am getting error as:
remote: Permission to username/project.git denied to randomuser.
I don't know from where the randomuser is coming from. When I do: git config --list --local
I am getting the correct username and email. I need help to figure out how it is happening and how to overcome it?