Bitbucket authentication in PHPStorm

 I’m on MacOS. 

By using terminal I’ve managed to clone a bitbucket repo and locally all seems to work in PHPStorm. Ie I can see branches, swap branches, I can commit. 

Except when I come to interact with bitbucket using pull and push  through PHPStorm I get a ‘can’t connect’ error. This is whether I use the visual interface or terminal in PHPStorm  

My understanding this is due to the authentication. I have authenticated through git Connection Helper so that I can push using MacOS terminal. This works fine and I can see my changes and commit messages in the repo. 

I also have a bitbucket app password. I can’t find anywhere I can authenticate in PHPStorm or use the app password so that I can use the IDE’s commands or terminal. 

How do I resolve this?

 

0
3 comments

In Settings | Version Control | Git, if you enable credential helper, does it work then? 

0

Yes, which is surprising because that's the thing that enabled connection in MacOS terminal. It's definitely installed because  git credential-manager --version returns 2.5.1 and a hash

0

This is expected. 

If you disable Credential helper in Settings | Version Control | Git, then git_askpass script will be executed and password per Settings | Appearance & Behavior | System Settings | Passwords will be used. 

0

Please sign in to leave a comment.