Eclipise中,import〉Project from Git ,单击next
选中Clone URI, Next
输入uri,user,password
Next,
选择要检出的分支
配置git参数:
Window > Preferences > Team >Git >Configuration
UserSettings > AddEntry
添加name和email
单击Apply保存
Window > Preferences > Team >Git >Configuration
Repository Settings
或者直接单击location右边的 open,出现一个config文件
复制以下内容进去即可
[core]
symlinks = false
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote "origin"]
url = http://tech.pingansec.com/ulindows/project_ucs.git
fetch = +refs/heads/:refs/remotes/origin/
[branch "test"]
remote = origin
merge = refs/heads/test
'''注意:如果checkout出来的是master分支,则
[branch "master"]
remote = origin
merge = refs/heads/master
高版本的Eclipse默认会配置好 Repository Settings部分