How to connect gitlab repository in phpstorm?
Previously, github and gitlab worked for me, but more recently, gitlab stopped working.
At the same time, if I execute the git push command, commits are uploaded to the repository.
There is a suspicion that gitlab has stopped working due to a change in authorization on github through a token.
But to add a setting for gitlab, like github in phpstorm is impossible.
Is there a way to make gitlab work in phpstorm without using ssh?
请先登录再写评论。
What OS are you using? And what does PhpStorm say in the Event log when you try to push/pull?
I am using windows 10 x64 latest version.
I try to push commits:
http://prntscr.com/nl85cu
But I see the password request window:
http://prntscr.com/nl82zb
The entered password is not accepted, the window is displayed again.
http://prntscr.com/nl82zb
The password is correct, I am sure. I tried it directly on the gitlab: logged out, login with the password - everything is ok.
If I close the login window - an error happened.
22:03 Push failed
Remote: HTTP Basic: Access denied
Authentication failed for 'https://gitlab.com/......-theme.git/'
http://prntscr.com/nl851a
If this is important, on gitlab I have 2 factor authentication.
Command line git works fine and push into gitlab without any problem.
github authorization in phpstorm is done through access token.
http://prntscr.com/nl866k
> Is there a way to make gitlab work in phpstorm without using ssh?
You should be able to just add gitlab repo using VCS - Git - Remotes. Could you please restart PhpStorm, reproduce this and upload somewhere the idea.log file (Help > Show log in ...) so we could inspect it?
I had git remote connected here,
but I deleted it and tried to add it again
http://prntscr.com/nm1roe
A password is requested, but a password is not accepted. The password is entered correctly, checked by entering the gitlab in the browser.
http://prntscr.com/nm1ttt
idea.log
At the same time, git remote and git push through the console work without any problems.
http://prntscr.com/nm1y17