eclipse怎么将本地git仓库上传至github

如题所述

打开Eclipse,git需要eclipse授权,通过网页是无法下载egit的安装包的。在菜单栏依次打开eclipse→help→install new software→add,Name栏中输入egit,location栏中输入  ,点击ok进行下载。下载完成后会提示重启eclipse;如果已经有了就不需要了。

2、在Eclipse中生public key, 并添加到GitHub Repository中。

在菜单栏依次打开window → preference → general → network connection → SSH2 → Key Management → generate RSA Key... → apply → save private key...


生成 SSH 的 public key在GitHub中通过:edit your profile -> ssh key -> Add SSH Key 添加SSH Key, 把上面生成的 public key 拷贝到这里,保存。

打开一个工程,在工程名上右键,点击team→share project,将你的工程另外导入到一个git文件夹。

在项目上点右键–>team–>commit。commit是commit到本机的git库,而push才是同步到github。


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