IntelliJ can't remember github credentials
Answered
Hi everyone,
Intellij keeps asking for my git credentials every time I use the terminal to push/commit. This is not normal behavior because my friends, who use the same IntelliJ version, is able to commit and push with the ide terminal (both bash).
My Github account is already set on intellij.
The settings (it was default) already use keePass to save password (I already had keepas). I tried reverting this setting and putting it back.
I am able to commit/push using the gui (green hook) without passwd.
I tried using ssh instead but it doesn't work (I tried making a .ssh/config file and many other things).
Thank you!
Please sign in to leave a comment.
> Intellij keeps asking for my git credentials every time I use the terminal to push/commit
The terminal in the IDE is just the system terminal embedded into IDE. Running commands there is equivalent of running commands outside of the IDE.
No git integration and password management features of IntelliJ are involved when you execute commands in the terminal.
So you probably need to configure git with credential helper so it remembers the password on its own.
Thank you Dimitri, I will look into how to configure git with credential helper.
Dimitri this isnt exactly true. When I push using the terminal outside IDE I don't get asked for credentials, only when pushing via the terminal from the IDE. I would like to push from the intellij terminal without entering credential everytime, like I do when I push using the terminal outside of the IDE.
The reason is likely some differences in environment settings.
Make sure IDE (and as a result, terminal inside it) inherits all the environment settings.
So IDE should be configured to use the same shell as the terminal outside it and should be started in a way it inherits all settings correctly.