2

I'm struggling to get IntelliJ to authenticate with GitHub using the correct user. Previously, I authenticated with a different user but had to change it. Now, IntelliJ always logs in with the first user and I cannot get it to change to my new user.

I have tried resetting passwords in 'Appearance and Behaviour' and have got only the correct user in the 'Version Control' section, neither have worked.

How do you change the git credentials that IntelliJ is authenticating with?

Referencing this as the error I'm getting:

Remote: Permission to NewUser/GamesCore.git denied to OldUser. unable to access 'https://github.com/NewUser/GamesCore/': The requested URL returned error: 403

5

On Windows 10:

Remove or update the Credentials stored in Windows Credentials at Control Panel\All Control Panel Items\Credential Manager.

1
  • After 2 hours of research, this helped immediately in my case. – bobasti Mar 28 '19 at 20:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.