2.Eclipse需要安裝egit插件,在Eclipse中選擇help-》Marketplace,在search中輸入egit,找到後安裝即可
3.在github上找到你要導入的源碼項目,比如筆者以oschina的Android客戶端爲例,網址:https://github.com/oschina/android-app
4. 有三種導入方式HTTP、SSHGit 、Read-Only,下面以http方式爲例,單擊http按鈕,右邊文本框會出現https://github.com/oschina/android-app.git,複製該信息
5.從Eclipse中選擇File-》import-》Git-》Projects from Git
6.選擇next-》選擇URI
7.選擇next,粘貼如下信息(注意填上您在github上申請的賬號密碼):
8.選擇next,進入分支選擇,這裏選擇的是master
9.選擇next,配置本地項目存放路徑
10.選擇next
11.單擊Finish,然後選擇Import existing projects,然後再單擊Finish即可在Eclipse中看到導入的項目了!