1、檢查eclipse是否安裝了git,如果沒有需要下載插件。
2、配置git,填寫github郵箱和用戶名
3、項目--》右鍵--》Team--》Share Project--》Use or create repository in parent folder of project--》Create Repository--》finish
4、項目--》右鍵--》Team--》add to index--》commit
5、登陸github--》建立倉庫--》clone and download--》複製HTTPS鏈接
6、項目--》右鍵--》Team--》remote--》push--》黏貼https--》填寫郵箱密碼--》finish
7、source ref --》選擇master--》add spec--》如果有衝突勾選force undate--》大功告成