1. 程式人生 > >在eclipse中使用git clone 別人共享在Github的代碼和上傳到自己的倉庫!

在eclipse中使用git clone 別人共享在Github的代碼和上傳到自己的倉庫!

log 一個 port cef jpg inf require find 兩個

原文地址:http://www.itdaan.com/blog/2014/10/24/ff5e03b5cefef19e1b6fbb7b49809846.html
1.在eclipse中安裝git:
打開eclipse 的Help>Install New Software.打開如圖:
在Name中隨便填一個git名字,Location填寫 http://download.eclipse.org/egit/updates/

技術分享圖片

點擊OK,回到圖中背後的窗口中,勾選Name下的兩個勾,記得把最下面Contact all update sites during install to find required software去掉(如果你網速很好的話可以不用去掉),OK,Next>Next,接受協議,然後點擊安裝。安裝完成如果有提示重啟則重啟,安裝完畢。

2.從eclipse的git 克隆別人分享的代碼:

在Package Explorer空白處右擊,選擇Import>Git>Projects from Git,Next,選擇URI(如果已經有本地的倉庫久選local),打開如圖:輸入URI:https://github.com/ChineseKeZhenxu/android.git 。由於是clone別人的代碼,所以不需要填寫User和Password,直接Next,選擇保存路徑,Next完成clone。

技術分享圖片

技術分享圖片

技術分享圖片

技術分享圖片

技術分享圖片

在eclipse中使用git clone 別人共享在Github的代碼和上傳到自己的倉庫!