I have --global git config under ~/.gitconfig
has email1
and
I also have --local git config under a git repo's .git/config
has email2
Both have different emails.
Now when I push to my remote repo from under the repo clone that has --local config I get an error saying "remote: Permission to abc/def.git denied to email1."
Why so and how can I fix this ?
I am using https github url's so don't have ssh keys set up or added to github.
git config --get user.email
shows email2 when run under the clone of remote repo.
shows email1 when run from my ubuntu home directory
git config --get-all user.email
shows both email1 and email2 when run under the clone of remote repo.
shows email1 when run from my ubuntu home directory
git config --get user.emailshow? what aboutgit config --get-all user.email?git config --get github.usershow anything? Do you know if you have a credential helper setup? Heck maybe just dogit config -land see what turns up.