Whenever I click push files to GitLab, first IDEA prompts me to enter login credentials.

[![enter image description here](https://i.stack.imgur.com/jRPJI.png%5C)](https://i.stack.imgur.com/jRPJI.png%5C)

This dialog window always pop up 3 times after clicking OK. login and password are correct. And after that I always get this error message:

[![enter image description here](https://i.stack.imgur.com/xJGkL.png)](https://i.stack.imgur.com/xJGkL.png)

Cannot even add remote in IntelliJ:

[![enter image description here](https://i.stack.imgur.com/RYjDM.png)](https://i.stack.imgur.com/RYjDM.png)

But I can "git add" and commit changes in IntelliJ.

Edit:
The solution is to use <https://git-scm.com/docs/git-credential-store>. IntelliJ push now works after that.