How to create a repository in Github with Eclipse? Here is an answer.

I will teach you how to do it step by step. Before creating your own repository in Github you need have a active account in Github.

Note: You can to go sign up if you haven't any Github account.

Here is my own eclipse version information.

Here we go!!!

1. Create a java project(e.g GitWithEclipseDemo for my demo) in your eclipse. And create some classes

2. Right click project -> Team -> Share Project...

3. Configure Git Repository window will be displayed. Then click 'Create' button.

4. Click 'Browser..' button to select a folder in your PC to set repository directory. This direcory is a local git repository.

In this case, I set my repository directory is 'C:\Users\Administrator\Documents\GitHub', and click 'Finish' button.

5.Click 'Finish' button in the Configure Git Repository window.

6.Go to Window -> Show View -> Other. Then the 'Show View' window will be displayed and to find Git section. Select 'Git Repositories' and 'Git Staging' and click 'Ok' button.

7.As step 6 to select 'History' item under Team section.

8. Right click project -> Team -> Commit..

9. Commit Changes to Git Repository window will be displayed. Type Commit message and select files that you want to commit and click 'Commit' button to commit.

In this case, I want to commit all files under 'GitWithEclipseDemo' project

10.Go to your own github website and click 'New' button to create a new repository in Github.

11. Type the Repository name and click 'Create Repository' button to create a new repository in Github.

In this case, I created 'GitWithEclipseDemo' repository in my Github.

12.Copy the URL the Github provided.

13.Back to eclipse and find Remotes under Git Repositories. Right click -> Create Remote...

14. Type the name for the new remote and click 'Ok' button

In this case, I used 'demo' for my remote name.

15. Configure push for remote 'demo' window will be displayed. Click 'Change' button.

16. Copy the URL that provided by Github(Refer Step 12), and type the User and password(this user and password can login your github). Click 'Finish' button.

17. Click 'Advanced' button in the Configure push for remote 'demo' window.

18. Select 'master' for Source ref and click 'Add Spec' button.

19.A new Mode will be added after clicking 'Add Spec' button in the Step 18.

20. Find demo in the Remotes section under Git Repositories. Right click -> Push

21.A push results  window will be displayed.

22.Go to your Github website, you can find your local sources had been pushed in Github now.

End. If you do some changes in your project(e.g. change code), you can Commit and Push it into Github.

You can find this 'GitWithEclipseDemo' in my Github.

Thanks for watching.

========================================================

More reading,and english is important.

I'm Hongten

E | hongtenzone@foxmail.com  B | http://www.cnblogs.com/hongten

========================================================

How to create a repository in Github with Eclipse?的更多相关文章

  1. remote: Repository not found. fatal: repository 'https://github.com/***/***.git/' not found

    通过命令添加新repository到git hub在执行最后一步命令(如下所示)的时候报错 git push -u origin master error:remote: Repository not ...

  2. 使用github管理Eclipse分布式项目开发

    使用github管理Eclipse分布式项目开发 老关我在前面的博文(github管理iOS分布式项目开发)中介绍了github管理iOS分布式开发,今天老关将向大家介绍使用github管 理Ecli ...

  3. github import repository创建github仓库

    现在,假设我们从零开发,那么最好的方式是先创建远程库,然后,从远程库克隆. 首先,登陆GitHub,创建一个新的仓库,名字叫blog: 1.先创建一个项目仓库 2. 我们勾选Initialize th ...

  4. Could not create local repository at /home/yizhenn/.m、IDEA倒入maven项目无法导报问题

    问题描述: 用自己电脑新搭建环境,用idea倒入项目后发现无法倒入jar包,很少郁闷,折腾了很久,最终发现问题 settings文件中下面这个配置,需要是自己电脑的路径 <localReposi ...

  5. github与eclipse创建仓库及克隆仓库

    1.前往github官网注册账号,并下载客户端: 2.为eclipse工程创建本地仓库: 1,目前大多eclipse都预装了egit插件,如果没有请自行安装 2,在eclipse内创建工程->右 ...

  6. github在eclipse中的配置

    http://www.cnblogs.com/yejiurui/archive/2013/07/29/3223153.html http://blog.csdn.net/shehun1/article ...

  7. github与eclipse结合使用

    github是现在流行的代码托管平台,今天以eclipse为例讲解github的使用,新建项目,提交eclipse项目到github,新建分支,合并分支 1.github上新建项目 记下githug项 ...

  8. 使用GitHub和Eclipse进行javaEE开发步骤

    下载Git客户端:链接:http://pan.baidu.com/s/1jIueUEy 密码:7gef; 下载Eclipse javaee客户端:http://www.eclipse.org/down ...

  9. Github结合Eclipse出现的问题

    半年前因为学习Git花费了很长时间,半年过去了,因为不使用,基本全部忘记了,最近在公司需要使用Eclipse开发相关项目,用到前期的测试数据挖掘的小算法,又重拾Git,不过这次不再是命令行模式,而是结 ...

随机推荐

  1. Swift 添加到TableView实现动画效果

    let indexPath = NSIndexPath(forRow:0 ,inSection:0) self.tableView.insertRowsAtIndexPaths([indexPath] ...

  2. IOS 程序图标添加数字

    +(void)setAppIconNumber:(NSInteger)num{ if ([UIParam getIOSVersion]>8.0) { UIUserNotificationSett ...

  3. Grunt构建工具插件篇——之less工具

    Grunt--Less 摘要: 之前介绍了自动构建工具Grunt,其中有一个模块是"grunt-contrib-less",下面是配置Grunt自动编译less文件. 安装: Gr ...

  4. MySQL要导出成excel的方法

    MySQL 要导出成 excel 文件很简单,执行类似这样的命令:   select * from 某个表 into outfile  'd:/文件名.xls';   上述命令你在服务器上执行,就导在 ...

  5. Spring的IOC原理[通俗解释一下]

    Spring的IOC原理[通俗解释一下] 1. IoC理论的背景我们都知道,在采用面向对象方法设计的软件系统中,它的底层实现都是由N个对象组成的,所有的对象通过彼此的合作,最终实现系统的业务逻辑. 图 ...

  6. jQuery查询性能考虑

    http://blog.163.com/neusoft_hao@yeah/blog/static/120544724201282810510215/

  7. jmeter测试计划

    测试计划配置 用户定义的变量: 测试计划上可以添加用户定义的变量.一般添加一些系统常用的配置.如果测试过程中想切换环境,切换配置,一般不建议在测试计划上添加变量,因为不方便启用和禁用,一般是直接添加用 ...

  8. 【JAVA笔记】JAVA后端实现统一扫码支付:微信篇

    最近做完了一个项目,正好没事做,产品经理就给我安排了一个任务.   做一个像收钱吧这样可以统一扫码收钱的功能.   一开始并不知道是怎么实现的,咨询了好几个朋友,才知道大概的业务流程:先是开一个网页用 ...

  9. php扩展SeasLog应用于 yii2 组件

    一.seaslog 简单介绍及使用原因 它是C 写的PHP扩展,性能很高,使用简单,能满足大部分简单的日志需求.(个人感觉) 其他优势请看-->https://github.com/Neeke/ ...

  10. Intellij IDEA 建立文件夹目录问题

    问题: NEW一个package常出现文件夹层次问题 解决: 1.选中当前文件夹(要在该文件夹下添加): 2.右击此处: 3.添加即可. 链接:http://stackoverflow.com/que ...