Reputation: 31
Trying to push a project to github and I'm getting the following Error
remote: Permission to RedNetty/RedPractice.git denied to JackCDev.
fatal: unable to access 'https://github.com/RedNetty/RedPractice.git/': The requested URL returned error: 403
The issue isn't as simple as me going into Settings > Version Control > Github
I've already changed that but its still trying to push via the wrong account.
Upvotes: 3
Views: 1934
Reputation: 1323145
Check if you have a git **credential helper**active:
git config credential.helper
For instance, on Windows, that would be the Windows Credential Managers.
Open the Windows Credential Store, and see if the first user is registered there: delete that entry, and you will be able to authenticate with the second user.
(Here is an example for BitBucket)
Upvotes: 4