title: IntelliJ GitLab. Push failed. Failed with error: Authentication failed
body: <p>Whenever I click push files to GitLab, first IDEA prompts me to enter login credentials.</p>
  
  <p><a href="https://i.stack.imgur.com/jRPJI.png%5C" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jRPJI.png%5C" alt="enter image description here"></a></p>
  
  <p>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:</p>
  
  <p><a href="https://i.stack.imgur.com/xJGkL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xJGkL.png" alt="enter image description here"></a></p>
  
  <p>Cannot even add remote in IntelliJ:</p>
  
  <p><a href="https://i.stack.imgur.com/RYjDM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RYjDM.png" alt="enter image description here"></a></p>
  
  <p>But I can "git add" and commit changes in IntelliJ.</p>
  
  <p>Edit:
  The solution is to use <a href="https://git-scm.com/docs/git-credential-store" rel="nofollow noreferrer">https://git-scm.com/docs/git-credential-store</a>. IntelliJ push now works after that.</p>