use GIT with eclipse plugin egit

本文介绍如何使用Eclipse插件EGit进行Git版本控制。包括安装EGit、配置SSH密钥、创建本地仓库并推送到GitHub的过程。还介绍了如何从GitHub获取项目的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

use GIT with eclipse plugin egit

I have heard this tool for quite a long time,once my friend ChaoChao introduced to me.I always use svn and cvs instead.
Now I will try this git since the new plugin egit for eclipse is released.

homepage:
http://www.eclipse.org/egit/

download and install location:
http://download.eclipse.org/egit/updates/

document location:
http://www.eclipse.org/egit/documentation/


Getting Started

Click the project you want to share,and then [Team]-----[Share Project], choose [Git],[Next]
Choose a directory d:\work\exefinance, click [Create Repository]-----[Finish]

[Team] -----[Track]
[Team] -----[Commit]
[Compare With] ------[History]

Pushing a Local Repository to GitHub
asign in this site:
https://github.com/

create rsa_key first
[Window]-----[Preferences]------[General]-------[Network Connection]-----[SSH2]
[Key Management]------[Generate RSA Key]

click the add public key area,put the text from the file C:\Documents and Settings\sillycat\.ssh\id_rsa.pub

create a New Repository

Project Name: exefinance
Description:
[Create]

click the project you want to share,[Team] -----[Push]
URI: git@github.com/luohuazju/exefinance.git
Protocol: git+ssh
User: git
Password: 留白

[Next]

Source ref: refs/heads/master
Destination ref: refs/heads/master
[Add all branches spec] ------[Next]

[Finish]

after that ,you can access your code from this url:
http://github.com/luohuazju/exefinance

Fetch the project from github

[Git Repositories]-----[Import Git Respository]
URI: git@github.com/luohuazju/exefinance.git
Protocol: git+ssh
[Next] [Next]

Directory: E:\git\exefinance
Initial branch: master
Remote name: origin

[Finish]

中文文档
http://progit.org/book/zh/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值