Eclipse 采用gitlab

阅读更多
1.下载git客户端(可以在命令行操作gitlab)
2.下载TortoiseGit
3.生成ssh
  • 到TortoiseGit安装目录下(默认C:\Program Files\TortoiseGit\bin),打开puttygen.exe
  • 点击Generate按钮,开始生成rsa秘钥,生成过程中鼠标在空白区域随便移动

  • Eclipse 采用gitlab_第1张图片
  • 完成之后copy公钥内容,进入gitlab服务器,选择Profile Settings->SSH Keys,将copy的公钥贴到keys输入框中
  • Eclipse 采用gitlab_第2张图片
  • 在puttygen操作界面点击Save private key,默认保存在C:\Users\Administrator\下的一个目录里, 我放在了ssh下,如果没有此目录可以建一个,目录名称随便起
  • 4.配置eclipse
  • 在eclipse中,依次选择 Window->Preferences->Network Connections->SSH2,设置SSH2 home为上一步创建的目录,点击Add Private Key,将上一步保存的私钥追加进来
  • Eclipse 采用gitlab_第3张图片
  • 在eclipse中选择Window-> Show View->Others->Git Repositories,
  • 点击Clone a Git repository,

  • Eclipse 采用gitlab_第4张图片
  • 选择Clone URI,
  • Eclipse 采用gitlab_第5张图片
  • 输入自己gitlab工程的url,点击next,就把gitlab上的工程导入到eclipse中了
  • Eclipse 采用gitlab_第6张图片

    Eclipse 采用gitlab_第7张图片
  • 之后在Working Tree中选中工程即可导入到eclipse中
  • Eclipse 采用gitlab_第8张图片
  • 大小: 18.7 KB
  • Eclipse 采用gitlab_第9张图片
  • 大小: 11.1 KB
  • Eclipse 采用gitlab_第10张图片
  • 大小: 5.6 KB
  • Eclipse 采用gitlab_第11张图片
  • 大小: 21.8 KB
  • Eclipse 采用gitlab_第12张图片
  • 大小: 22.4 KB
  • Eclipse 采用gitlab_第13张图片
  • 大小: 15.5 KB
  • Eclipse 采用gitlab_第14张图片
  • 大小: 19.2 KB
  • 查看图片附件

你可能感兴趣的:(Eclipse 采用gitlab)