IDEA keeps asking for GitHub credentials
Answered
Here is my environment:
IntelliJ IDEA 2021.1 (Ultimate Edition)
Build #IU-211.6693.111, built on April 6, 2021
Licensed to *****
Subscription is active until May 9, 2021.
For non-commercial open source development only.
Runtime version: 11.0.10+9-b1341.35 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
Linux 5.8.0-48-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 20
Non-Bundled Plugins: Dart (211.6693.108), io.flutter (55.0.5), io.plugin.tsnode (2020.09.01-0)
Kotlin: 211-1.4.32-release-IJ6693.72
Current Desktop: KDE
and my OS is Ubuntu 20.10.
Whenever I try to clone a private repo, use external plugin that interact with Git (ie GitToolbox), or other action that interact with GitHub, the popup asking to login with Git keeps opening (in the settings the GitHub account is already added).
When I clone a private repo even if I log in the clone in the end fails.
I'm aware of https://youtrack.jetbrains.com/issue/IDEA-248658 but seems like that the issue is still happening (I have the issue only in Linux on Windows this is not happening).
Anything I could to to fix the issue?
Please sign in to leave a comment.
Hello Mattia
The login prompt can come from GitToolbox plugin. It may ask you to re-login to GitHub since it's doing auto-fetch. You can disable the plugin.
If you are trying to clone a private repository and still prompted to enter credentials it's worth checking whether you have "Use credential helper" enabled under Preferences | Version Control | Git. If it's enabled, please disable it since it will override the account that is used Preferences | Version Control | GitHub and it will use credentials that are stored in credential manager.
I already had GitToolbox disabled and the credential manager disabled, and still got the prompt.
However after enabling the credential manager it's working fine, without any prompt.
Before I had used the command to save the credential so it might be because of that.
(I'm aware it's insecure)
Thank you for clarification.
If you've managed to login to GitHub in IDE, but your clone is failing - could you please share exact error message that you are having?
Also do you clone from an organization repository by any chance? If so there is a chance that it may have OAuth enable, then please refer to this guide
Thanks for the help!
I've managed to login to GitHub in the IDE and clone the repository successfully (before I was recieving an error saying that the repository is not found.)
I'm cloning from an organization repository, however in the way I showed in the previous post fixes the cloning as well.
I ran through the same issue while interacting with my remote GitHub Repo through my Ubuntu system. I'm using PyCharm and the solution I found was this:
Note: I do not have the GitToolbox plugin installed in my IDE.
Once completed the above two steps, try interacting with your GitHub remotes, it may ask for credentials for one-time if you haven't already linked your GitHub account. After this, it should not be asking for it again!
Cheers
While logging in use `AccessToken`
The solution for me was to enable the 'Git credentials helper' in the IntelliJ settings.
Filippo Orru thx so much, it worked!
Thanks Filippo Orru,
'Git credentials helper' works for me too
Thanks Filippo Orru, it's worked for me.
Still happens to me with
IntelliJ IDEA 2024.1.4 (Ultimate Edition)
Build #IU-241.18034.62, built on June 20, 2024
Licensed to Armando Ota
Subscription is active until November 10, 2024.
Runtime version: 17.0.11+1-b1207.24 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.5.0-41-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
Non-Bundled Plugins:
com.jetbrains.plugins.ini4idea (241.18034.82)
org.jetbrains.plugins.go-template (241.14494.150)
com.markskelton.one-dark-theme (5.11.0)
org.jetbrains.plugins.go (241.17011.2)
com.jetbrains.space (241.18034.4)
org.asciidoctor.intellij.asciidoc (0.42.2)
com.intellij.ml.llm (241.18034.12)
com.intellij.lang.jsgraphql (241.14494.150)
com.jetbrains.packagesearch.intellij-plugin (241.0.11)
com.jetbrains.php (241.18034.69)
Kotlin: 241.18034.62-IJ
Current Desktop: KDE
And checked
version control > git > [X] use credentials helper.
I have to copy paste my password 4 times before it accepts it :D
This is working bro
they fixed git lfs pushes ?
Thanks Filippo Orru, it's worked for me.