1.按照github上的指南配置(
http://help.github.com/win-set-up-git/)基礎的git環(huán)境。
2.在github上創(chuàng)建一個Repository。
3.在Eclipse中通過“Eclipse Marketplaces”,在Market Places里安裝egit。
4.在Eclipse中生public key, 并添加到GitHub Repository中。
Eclipse中通過:performance -> SSH2 -> Key Management -> Gernerate RSA Key 生成 SSH 的 public key。
在GitHub中通過:edit your profile -> ssh key -> Add SSH Key 添加SSH Key, 把上面生成的 public key 拷貝到這里,保存。
5.Eclipse里File菜單,Import,即可從git導入剛添加到git的項目了。
6.修改,并提交。在項目上點右鍵–>team–>commit。commit是commit到本機的git庫,而push才是同步到github。