1.配置Git
Window -> Preferences -> Team -> Git -> Configuraiton
Add Entry...
插入兩條
Key -> user.name
Value -> 你的Github用戶名
Key - > user.email
Value -> Github賬戶用的郵箱
配置Github公鑰
Window -> Preferences -> General -> Network Connections -> SSH2
Apply -> Yes
Key Management
生成RSA Key(Generate RSA Key)
保存公鑰和私鑰(Save Private Key)
Apply and Close
打開文件管理器找到生成的公鑰的位置復制公鑰,並在GitHub上配置
New -> 粘貼完成
新建一個Web項目並Push到Github
填寫項目的名稱
WebRoot為Web所在的根目錄
新建一個JSP File
保存測試
Push到Github
右鍵項目Library Management -> Team -> Share Project
新建一個本地倉庫
finish
在GitHub上面新建一個同名的遠程倉庫
右鍵項目Library Management -> Team -> commit
如果不是這個窗口的話執行一下操作(資料說這個是老式的窗口)
去掉下面的這個鈎子
選擇要提交的所有文件並填寫Commit message
Commit and Push
一路next finish完成
Push到遠程倉庫
右鍵項目Library Management -> Team -> Push to Upstream
finish完成