Initially my git was logged in to abc@gmail.com Later I want to push my new code to repository to email xyz@gmail.com
Trying to push my android code on github.
All the steps are going fine. Now when last when I do this :
git push origin master
It shows :
remote: Permission to ****/******.git denied to xyz@gmail.com.
fatal: unable to access 'https://github.com/*********/ScanFiles.git/': The requested URL returned error: 403
But when I do : git config --global user.email
It shows xyc@gmail.com
.
What is the problem?