IDEA 中使用 http 协议
三、如何使用协议
3.1 使用 http 协议
项目右键-》Git -》 repository -》 remote -》选择 http 协议的地址
3.2 使用 ssh 协议
首先 Git Bash 或软件生成 SSH 秘钥
SSH 公钥默认存储在账户的主目录下的 ~/.ssh 目录。
复制代码
id_rsa 或 id_rsa 文件是密钥。.pub 后缀的文件是公钥通过 ssh-keygen 创建 ssh 公钥,要求输入密码时留空就可以在使用的时候不输入。
使用 cat ~/.ssh/id_rsa.pub 查看公钥.
注意:
1)http 协议的 url 中包含此协议,直接选择即可在 IDEA 中使用
2)ssh 协议使用前必须配置本地和 GitLab 的公钥,然后才能在 IDEA 中使用







评论