前提: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