目的:從遠程倉庫抓取(也能夠叫克隆)到本地倉庫。 方法 步驟一:打開Eclipse,點擊右上角紅圈位置的圖標,找到裏面的Git選項,雙擊打開。 步驟二:點擊上面三個紅圈中間的紅圈圖標(也就是對應下面的Clone a Git repository), 而後選擇Clone URI,而後下一步。 在URI中將咱們https方式的地址粘貼到這裏, 在下方user和password輸入框裏輸入咱們oschina的帳號和密碼 ,而後點擊finish。
步驟三: 1.使用java項目 打開Working Directory按右鍵選擇import Projects… 以後根據提示就能夠將遠程倉庫克隆到本地了,提示中選擇了import as a general project
2:使用web項目 若是是Dynamic Web Project我記得應該是選擇Import using the New Project wizard
提示錯誤:Connecting Git team provider failed. See log for details.Connecting Git team provider failed. See log for details.Error connecting project myweb, no Git repositories found 緣由分析:在於git配置文件工做目錄要與新建web項目目錄不一致 解決方法:將git路徑與web路徑保持一致
步驟四:轉換成maven項目後再更新(maven update)
更新Maven