When idea pushes code to GitHub, it repeatedly prompts for user name and password

Time:2021-4-8

1、 Problem description

It’s very convenient to use idea operation code for VCs, and it’s very convenient to push and pull to GitHub. However, it’s very annoying to frequently prompt you to re-enter your user name and password recently.

2、 Cause of the problem

After searching, we found that the reason for the problem is: when idea creates a project, it uses the method of HTTPS instead of SSH. The local user does not save the user name and password for each input, so it will lead to repeated input.

Once you know the problem, it’s easy to solve it.

3、 Solutions

1. The most convenient method: add configuration to let git record user name and password

Input in the idea terminal, so as to record the user name and password


git config --global credential.helper store

Then, after reentering the password, you don’t have to repeat it.

In the future, the interface that needs to input GitHub user name and password may still pop up. Just ignore and close it directly, and the background will automatically push it. You can have fun again~

2. Change to SSH

PS: idea repeatedly prompts for password when using Git

Problem description

When using idea to access git project, whether it is pull / push. Enter the password every time.

Problem solving

Directly use git command line to execute the following command


git config --global credential.helper store

This article about idea to GitHub push code has been repeatedly prompted to enter the user name and password of the article introduced here, more related idea to GitHub push code repeatedly enter the password content, please search the previous article of developer or continue to browse the following related articles, hope you can support developer in the future!