# Eclipse 的 github 配置

**URL:** <https://www.isharkfly.com/t/eclipse-github/10652>\
**Category:** 软件技术\
**Created:** [January 31, 2013, 3:28am UTC](https://www.isharkfly.com/t/eclipse-github/10652 "2013-01-31T03:28:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [January 31, 2013, 3:28am UTC](https://www.isharkfly.com/t/eclipse-github/10652/1 "2013-01-31T03:28:02Z")

</div>

1.按照github上的指南配置（[http://help.github.com/win-set-up-git/](http://help.github.com/win-set-up-git/)）基础的git环境。

2.在github上创建一个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。
