Github account authenticated with token in intellij

I recently started working on a new development team. Since I didn't have access to the repos, but we already wanted to clone them, a colleague gave me access with a username and github token, no password. After being granted access to the github company, I wanted to use my personal token. When I type my token in Intellij IDEA Github settings and click "Test" it says "Connection successful for user" but when I try to interact with git it says authentication failed. The cocktail tokens still work, but I can't figure out why. Looks like I'm signed in to his account anyway, but can't find it.

+3


source to share


1 answer


IDEA uses the git command line command. The git client can save its own credentials on its own if the credential helper is configured. Most likely, it kept the previous token and now automatically uses it.



Make sure that git config credential.helper

executed in the project directory returns nothing. Alternatively, using the same command, figure out which helper is being used and remove the saved token.

+1


source







All Articles