Eclipse配置Git发布项目到Github
很牛叉的博客http://blog.csdn.net/luckarecs/article/details/7427605
一、安装插件
菜单栏Help --> Install New Software...-->>在Work with中输入http://download.eclipse.org/egit/updates-->>勾选Eclipse Git Team
Provider和JGit-->>点击Next,进入安装,重启Eclipse
二、配置Git
菜单栏Window -> Preferences -> Team -> Git -> Configuration,点击Add Entry...,添加name和email
例如:user.name wangwanchao ; user.email gggeek@163.com
登录GitHub后点击右下角的New repository按钮添加项目代码仓库-->>输入Repository name(建议与要提交的项目名同名)
三、关联Git
注意:1、第一步如果出错,cannot read file /.gitconfig,直接找到该文件删除即可
2、如果以前已经安装使用过Git提交项目到Github,第一步可以直接加载以前生成的SSH密钥
1、在Eclipse中生public key, 并添加到GitHub Repository中。
在菜单栏依次打开window → preference → general → network connection → SSH2 → Key Management → generate RSA Key... → apply → save private key...
2、关联Git。鼠标选中要发布的项目,单击右键,Team -> Share Project,选Git,点击Next。勾选Use or create repository in parent
folder of project,选中要发布的项目,点击Create Repository,点击Finish完成。
3、发布项目。鼠标选中要发布的项目,单击右键,Team -> Commit,填写Commit message,勾选全选,点击Commit提交。注意:此时,仅
是提交在本地Git,还需要Push才能提交到GitHub中。
4、发布到GitHub。鼠标选中要发布的项目,单击右键,Team -> Remote -> Push,粘贴URI(https://github.com/wangwanchao/WaterMark.git),填写User(wangwanchao)和Password(xxxxxx),点击Next;点击
Source ref的下拉框,选择master,点击Add Spec,点击Finish,点击OK完成。
四、从Github更新项目
从GitHub中取得项目代码。菜单栏Window -> Show View -> Git -> Git Repositories,点击OK;在Git Repositories视图中,点击图示按钮,进入Clone Git Repository对话框;填写URI,User,Password,点击Next;点击Next;选择要保存的路径,点击Finish。至此,项目代码就被下载到指定目录下了,需要使用的时候通过Eclipse Import进来即可。
Eclipse配置Git发布项目到Github的更多相关文章
- Eclipse使用git发布项目到github
因为一直都在使用svn,今天尝试了下git,记录下来既是方便自己以后查看,也是分享一些经验! 废话不多说,撸起袖子就是干!!! 1.选中要上传的项目右键 2.选中git 3.在图上打钩,点击所要上传的 ...
- git学习四:eclipse使用git提交项目
支持原创:http://blog.csdn.net/u014079773/article/details/51595127 准备工作: 目的:eclipse使用git提交本地项目,提交至远程githu ...
- eclipse使用git提交项目
eclipse使用git提交项目有2种方式:一种是git命令窗口,另一种是eclipse自带git插件(跟svn插件一样使用) 一.使用git命令窗口提交项目 1.首先官网下载git并安装,然后配置用 ...
- 不用copy代码--eclipse使用git提交项目-转
原文地址:http://blog.csdn.net/u014079773/article/details/51595127 准备工作: 目的:eclipse使用git提交本地项目,提交至远程githu ...
- eclipse 从git取项目,导入为maven项目,新加的方法,报加载主类错误
eclipse 从git取项目,导入为maven项目,新加的方法,报加载主类错误 具体描述: 整体编译能够编译成功,但新加一个java,里面创建一个main方法,运行时,报无法加载主类的错误, 整体编 ...
- eclipse 配置git ssh登录
实现需要安装git的插件,由于我使用的adt和eclipse for javaee版本两个,都已经安装了git插件,就不再演示了,网上都有. 这篇文章主要是介绍使用ssh进行认证的方式. 1.首先,配 ...
- android studio发布项目到github
点击file setting ,打开对话框,如下,判断git是否安装成功 选择GitHub,填写github地址及密码 发布项目:
- eclipse使用git下载项目
准备工作: 目的:从远程仓库github上down所需的项目 eclipse使用Git插件下载github上项目 eclipse版本:eclipse4.5 64位 jdk版本:jdk-1.7 64位 ...
- git学习五:eclipse使用git下载项目
原文:http://blog.csdn.net/u014079773/article/details/51597213 准备工作: 目的:从远程仓库github上down所需的项目 eclipse使用 ...
随机推荐
- Windows API 之 FineFirstFile、FindNextFile
参考:https://msdn.microsoft.com/en-us/library/aa364418%28VS.85%29.aspx FindFirstFile Searches a direct ...
- 解决adb端口被占用的方法
错误: [2016-04-20 19:05:04 - ddms] 'E:\android\android-sdk\android-sdk\platform-tools\adb.exe,start-se ...
- Struts2 语法--result type
result type: dispatcher,redirect:只能跳转到jsp,html之类的页面,dispatcher属于服务器跳转, redirect属于客户端跳转 chain: 等同于for ...
- Android media媒体库分析之:MediaProvider
在做Android媒体应用程序时(Audio.Image.Video)需要对Android的媒体提供者(MediaProvider)做详细的分析,下面记录一下我的收获: 一.获取MediaProvid ...
- 写入cookie后只显示一次的DIV提示框代码
<script type="text/javascript"> function cookiesave(n, v, mins, dn, path){ if(n) { i ...
- push控制器 卡顿
代码: RecommendController *rec = [[RecommendController alloc]init]; [self.navigationController pushVie ...
- mysql的一些特殊命令
mysql命令行工具的编辑技巧 从mysql performace blog 中学到的: 1. pager 例子 mysql> pager more PAGER set to 'more' my ...
- Coloring Trees
Coloring Trees time limit per test 2 seconds memory limit per test 256 megabytes input standard inpu ...
- 找礼物(find)
找礼物(find) 题目描述 新年到了,你的好友和你(共K个人)的周围满是礼物,你让你的好友先拿,但是每个人只能拿当前离自己最近的礼物[当然如果有并列的多个礼物离你的距离相等(精确到小数点后四位,所有 ...
- 浏览器兼容问题 chrome iframe location href
报了个错 var dt2=new Date(d2Arr[0],d2Arr[1],d2Arr[2]); if(dt1>dt2){//比较日期 alert("开始日期不能晚于结束日期!&q ...