美文网首页
9- Eclipse提交项目到github

9- Eclipse提交项目到github

作者: 熙熙爸爸 | 来源:发表于2017-09-02 11:22 被阅读0次

所需条件

  1. 拥有github账号
  2. eclipse安装git插件
git插件

操作步骤

  1. eclipse安装git插件
  • 点击help下面的eclipse marketplace


  • 搜索git,并安装egit插件(我这边已经安装过了,所以显示installed)

  1. 提交项目
  • 在需要提交的项目上右键,选择team下的share project


    share
  • 选择git

选择git
  • 选择use or create repository in parent folder of project ,表示在项目的工作空间创建git repository
  • 点击create 然后点击 finish (create repository 是可点击的,我这里是因为点击过了)


  • 把target 加入到ignore
    在target 文件夹上右击 选择team ignore

  • 在窗口选择器中选择git

在这里可以看到ignore文件,可以直接编辑


编辑git文件,添加一些不需要提交的文件和文件夹


image.png
  • 在项目上面右击选择team commit
commit

进入提交界面

选中左上角的内容选择add to index,这里注意,在ignore中添加的文件是不会在这里显示的,ignore就表示不需要使用git管理这些文件


  • 添加注释 选择提交
  • 在github上创建repository
image.png

创建完成之后得到repository的路径

  • 选择team选项中的remote push


uri就是创建的repository的路径
user 和password 就是github的账号和密码
添加完成之后点击finish,进入下面界面

点击finish 完成

相关文章

网友评论

      本文标题:9- Eclipse提交项目到github

      本文链接:https://www.haomeiwen.com/subject/elqqjxtx.html