前提:html
Preferences > Team > Git > Configuration > User Settings > Add Entry..
Key
: user.name, Value
: usernameKey
: user.email, Value
: username@A702.HRGYWindow > Preferences > General > Network Connections > SSH2
,进入SSH2
对话框
General > SSH2 home(输入ssh信息保存路径: I:\WorkSpace\CODE\git\.ssh) > Apply
Key Management > Generate RSA key.. > Passphrase(输入密码,将在使用密钥时使用) > Save Private Key.. > Apply
General > Private Key(选择刚生成的私匙路径: I:\WorkSpace\CODE\git\.ssh\id_rsa) > Apply
Profile Settings > SSH keys > Add an SSH key
Key
中输入刚才生成的Public KeyTeam > Share Project > Git
Configure Git Repository
对话框中,依次选择: Use or create repository in parent folder of project > 勾选Project列表 > Create Repository > Finish
Team > Commit
Commit Changes
对话框中,Commit message
填:初始导入;勾选Files列表中要提交的文件。commit
进行提交Projects > New Project
Project path
填项目名称,而后选择Create project
。git@gitlab.com:user/project.git
Team > Push Branch 'master'..
(或Team > Remote > Push..
)Push Branch master
对话框中,Location > URI
填写1. 建立Git远程托管项目
获得的SSH链接:git@gitlab.com:user/project.git
Next > Next > Finish
Passphrase
密码值,则此过程会弹出提示要求输入Pushing to remote repositories
,等待上传OK
完成File > Import.. > Git > Projects from Git > Clone URI
,Import Projects from Git
对话框中,Location > URI
填写Git托管项目的SSH链接:git@gitlab.com:user/project.git
,点击Next
Passphrase
密码值,则此过程会弹出提示要求输入master
,点击Next
Next
Import existing Eclipse projects
,点击Next
Projects
列表中选择要导入的项目,点击Finish
http://www.tuicool.com/articles/Ar6rMfm
http://wiki.eclipse.org/EGit/User_Guide
http://yufenfei.iteye.com/blog/1750124
http://blog.csdn.net/hil2000/article/details/8566456
http://www.cnblogs.com/zhxiaomiao/archive/2013/05/16/3081148.html
http://www.cnblogs.com/yejiurui/archive/2013/07/29/3223153.htmlgit