1、安裝git
? ? 安裝文件:Git-2.12.0-64-bit.exe
下載地址:https://github.com/git-for-windows/git/releases/download/v2.12.0.windows.1/Git-2.12.0-64-bit.exe?
? ? 在git bash中配置,git bash命令行中執行(只有使用到egit時使用):
? ? ? git ?config ?--global ?user.name "liangshengqi"
? ? ? git ?config ?--global ?user.email "liangshengqi@inspur.com"
?
2、安裝eclipse
? ? 安裝文件:eclipse-jee-mars-2-win32-x86_64.zip
下載地址:http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/mars/2/eclipse-jee-mars-2-win32-x86_64.zip
? ??安裝git插件(jee版本自帶插件,則不需要單獨安裝)
? ??設置git插件:在eclipse中,Windows->perferences->team->Git->Configuration->User Settings, Add Entry:
? ? ? ? ?key:user.email value:liangshengqi@inspur.com
? ? ? ? ?key:user.name value:liangshengqi
?
3、修改hosts文件
? ? 文件位置:C:\Windows\System32\drivers\etc\hosts
修改內容:增加如下內容
10.110.17.13 gitserver
10.110.17.14 jenkinsserver
10.110.17.15 sonar.iop.inspur.co
10.110.17.16 repo.iop.inspur.com
10.110.17.17 backup.inspur.com
??
4、導入git資源庫
? ? a、在 ?http://10.110.17.13/ ?中,點擊一個項目,復制顯示的git地址,如下圖中的?http://gitserver/iop/cloud-agent-python.git?:
? ? ? ??
?
? ? b、eclipse中的“Git Repositories”視圖中,選擇“Clone a Git Responsitory”,輸入上一步得到的git地址,點擊next? ? ? ?
?? ? ? ?3edc#EDC
?? ? ? ?
? ? ? ? 系統顯示分支列表,點擊next
? ? ? ??
? ? ? ? 點擊next,顯示如下圖:
? ? ? ??
? ? ? ? 點擊finish按鈕,git插件開始下載配置庫
? ? c、在“GitRespositorie”視圖中選擇工程文件,
? ? ? ? 右鍵菜單,點擊“Import projects”,選擇“Import as general project”選項,
? ? ? ? 然后默認下一步,即完成導入工程到eclipse中;
?
--------------------------------------------------------
http://gitserver/iop/cloud-iopm-web
3edc
--------------------------------------------------------
?
http://gitserver/iop/example-server
這是后臺項目的,你檢一個到本地先看看,前臺的我需要重新整一下
浪潮信息-趙山??13:56:41
你可以先看看IOP的前臺項目也行
http://gitserver/iop/cloud-iopm-web
這是iop的
10.110.17.13 gitserver
10.110.17.14 jenkinsserver
10.110.17.15 sonar.iop.inspur.com
10.110.17.16 repo.iop.inspur.com
10.110.20.95 langchao.com
?