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