天天看點

如何從Eclipse導入github上的項目源碼

文章轉載自: http://blog.csdn.net/hil2000/article/details/8566456

1.首先在github.com上申請一個賬号,比如筆者的賬号為puma007

2.eclipse需要安裝egit插件,在eclipse中選擇help-》marketplace,在search中輸入egit,找到後安裝即可

如何從Eclipse導入github上的項目源碼

3.在github上找到你要導入的源碼項目,比如筆者以oschina的android用戶端為例,網址:https://github.com/oschina/android-app

4. 有三種導入方式http、sshgit

、read-only,下面以http方式為例,單擊http按鈕,右邊文本框會出現https://github.com/oschina/android-app.git,複制該資訊

如何從Eclipse導入github上的項目源碼

5.從eclipse中選擇file-》import-》git-》projects from git

如何從Eclipse導入github上的項目源碼

6.選擇next-》選擇uri

如何從Eclipse導入github上的項目源碼

7.選擇next,粘貼如下資訊(注意填上您在github上申請的賬号密碼):

如何從Eclipse導入github上的項目源碼

8.選擇next,進入分支選擇,這裡選擇的是master

如何從Eclipse導入github上的項目源碼

9.選擇next,配置本地項目存放路徑

如何從Eclipse導入github上的項目源碼

10.選擇next

如何從Eclipse導入github上的項目源碼

11.單擊finish,然後選擇import existing projects,然後再單擊finish即可在eclipse中看到導入的項目了!

如何從Eclipse導入github上的項目源碼