问题描述
我正尝试将我的GitLab存储库与IntelliJ-IDEA连接起来,但它仍然无法连接到存储库。我已经尝试了下一件事情:
- 我正确安装了msysgit
- 生成SSH密钥( 然后在IntelliJ IDEA中的测试会通过,您将可以使用ssh或https ...(我使用私有Windows创建的ssh密钥
id_rsa
,没有任何密码,但它也可以使用受保护的密钥。)I am trying to connect my GitLab repository with IntelliJ-IDEA, and it still cant connect to the repo. I have tried the next things:
- I have msysgit installed correctly
- Generated the SSH keys (https://help.github.com/articles/generating-ssh-keys/)
- Added the key on GitLab keys
- Define the enviroment variables HOME USERPROFILE point to C:\Users\sebastian.garces.ssh. %USERPROFILE$/.ssh %HOME$/.ssh
- In IntelliJ changed SSH executable to Native
I did a lot of things from this links:
And many other google searchs
I dont know what else to do nothing is working.
UPDATE: When i try to Clone the repository and press the Test Button it loads and loads and nothing happen after a while it give me this error: repository test has failed
解决方案Try to install plugin:
Settings
->Plugins
->Browse repositories
-> typeGitLab Projects Plugin
minimum version 1.3.0and go to
Settings
->Other Settings
->GitLab Settings
Fill
GitLab Server Url
withhttps://gitlab.com/
(ensure slash at the end)andGitLab API Key
with string (private token which is shown as the first thing on:https://gitlab.com/profile/account
)And then the test in IntelliJ IDEA will pass and you will be able to use ssh or https for each repository... (I use private Windows created ssh key
id_rsa
without any password, but It will work with protected key too.)这篇关于无法使用SSH将IntelliJ-IDEA连接到GitLab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
- 生成SSH密钥( 然后在IntelliJ IDEA中的测试会通过,您将可以使用ssh或https ...(我使用私有Windows创建的ssh密钥