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

來源:互聯網
上載者:User

標籤:android   http   ar   os   sp   strong   on   bs   ad   

1.首先在github.com上申請一個帳號,比如筆者的帳號為puma007
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中看到匯入的項目了!

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.