Intellij-idea使用多个用户名访问Bitbucket

Intellij-idea access Bitbucket with several user names

我正在使用 bitbucket 存储库并从 intellij idea 收到以下错误:

Remote URL test failed: remote error: 
Not licensed You do not have permission to access Bitbucket. 
Please contact your administrator to resolve this issue.

从 git bash 连接成功。 另外,在intellij中没有找到定义bitbucket用户的地方。

一些附加信息:我有两个不同的帐户用于两个 Bitbuket 存储库。 因此,当在 intellij 控制台上尝试时:

git config --list

我得到了user.name之前repo的用户名。

是否有任何优雅的方法来处理每个存储库应连接到 git 的用户?

我的解决方案是为当前存储库生成一个 SSH 密钥并将其添加到 bitbucket 服务器。 现在,在使用第一个存储库时 - 它使用 user.name,而对于第二个存储库,它使用 SSH 密钥。