Access Denied When Trying to Push Github

0

I'm having trouble pushing to a repository in GitHub:

remote: Permission to fabiojaniolima/laravel-boot.git denied to user123.
fatal: unable to access 'https://github.com/fabiojaniolima/laravel-boot.git/': The requested URL returned error: 403

I do not know where user123 is defined, my goal is to upload with user fabiojaniolima, I already looked for the configuration but did not find it, looked at the project settings and global.

    
asked by anonymous 23.03.2018 / 22:56

2 answers

1

I found the problem, which is what I least expected. In the git settings everything was correct, the problem was in the MacOS keyring, it saved an old login with user123, when I ran a push it was considering the user123 credentials and not the user's configured in the ~ /. gitconfig or .git / gitconfig

    
23.03.2018 / 23:19
0

Check the repository's "./.git/config" file, it can be configured locally with this user.

    
23.03.2018 / 23:14