eclipse中怎么使用github

如题所述

eclipse中使用github的方法:

1.按照github上的指南配置(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。

6.在Eclipse右键菜单Import选择Git->Projects from Git如图所示。

7.选择URI,这是意味着从远程服务器代码仓库导入一个工程。

8.在URI中输入[email protected]:tonyguan/Hello-Android.git。

9.点击下一步会有密码校验过程。

10.输入密码然后就很简单了,再做一些选择就可以导入工程了。

温馨提示:答案为网友推荐,仅供参考
相似回答