Why am I getting permission denied error while pushing code to remote in git ?
My global config user is ninadraj221 however I have added one local config user as ninadraj321. Now I'm trying to push to ninadraj321's repo from the same ninadraj321 local config but I am getting error as
$ git push -u origin master
remote: Permission to ninadraj321/TestRepo.git denied to ninadraj221.
fatal: unable to access 'https://github.com/ninadraj321/TestRepo.git/': The requested URL returned error: 403
Why is it not overriding my global user while pushing to remote ? However while committing I can clearly see the author as ninadraj321 ? Am I missing something over here ?