[英]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
輸入了以前存儲庫的用戶名。
是否有任何優雅的方法來處理每個存儲庫應將哪些用戶連接到 git?
我對此的解決方案是為當前存儲庫生成一個 SSH 密鑰並將其添加到 bitbucket 服務器。 現在,當使用第一個存儲庫時 - 它使用user.name
而對於第二個存儲庫,它使用 SSH 密鑰。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.