文章轉載自: http://blog.csdn.net/hil2000/article/details/8566456
1.首先在github.com上申請一個賬号,比如筆者的賬号為puma007
2.eclipse需要安裝egit插件,在eclipse中選擇help-》marketplace,在search中輸入egit,找到後安裝即可
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIn5GcuIDMxUzX4kzN2UDO5UzMx8CXzAzLcJDMzEDMy8CXzRWYvxGc19CX0Vmbu4GZzNmL51mLn1Wavw1LcpDc0RHaiojIsJye.png)
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中看到導入的項目了!