Streamsets專案git環境搭建

weixin_34050427發表於2017-06-21

開發環境:windows Eclipse + git
伺服器環境:Linux centos streamsets

安裝工具

Open Eclipse -> Help -> Install New Software -> Add->
Location: http://download.scala-ide.org/sdk/lithium/e46/scala211/stable/site
Select All -> Finish

在Eclipse中使用Git

  • 載入git
Open Eclipse -> Window -> Perspective -> Open Perspective -> Other -> Git -> OK
  • 生成git 和 本地目錄檔案的ssh-key
  • 下載 git for windows
  • 開啟 git bash輸入
ssh-keygen -t rsa
  • 你的ssh-key會儲存到使用者目錄,這裡我的使用者目錄是
C:\Users\thinkpad\.ssh
  • 去這個目錄下找到id_rsa.pub檔案開啟,複製裡面的ssh key
  • 去git的個人賬戶中點選ssh目錄,選擇add ssh key


    4037309-c7b538e61a91193b.png
    Paste_Image.png
  • 將剛剛複製的ssh key貼上在下面。
  • 開啟eclipse
->windows->preference
搜尋SSH2 輸入你的ssh目錄和名稱
SSH home:C:\Users\thinkpad\.ssh
private key:id_dsa,id_rsa
- 新增git repository
Git Repositories -> 在空白處右擊 -> Paste Repository Path
Next -> Next -> Finish

相關文章