无法使用EGit 4.6将TFS git存储库克隆到Eclipse Oxygen

时间:2018-06-09 21:23:03

标签: eclipse git tfs

无法使用EGit 4.6将TFS git存储库克隆到Eclipse Oxygen - 尝试联系时出错:https://tfs.testqa.zionsbank.com/DevelopmentCollection/ZionsTools/git/zions-services-framework

Java 1.8
tfs站点的cert已被导入到eclipse正在使用的java信任库中
TFS服务器2018
我可以通过Mac终端成功克隆git存储库

gitconig文件

-------------------------
[http]
    sslCAInfo = /Users/z070187/ca-bundle.crt
    sslVerify = false
[user]
    name = z070187
    email = michael.angelastro@zionsbancorp.com
[http "https://tfs.testqa.zionsbank.com"]

    sslVerify = true
---------------------

复制步骤:

  1. 打开Eclipse Oxygen
  2. 打开Git存储库查看
  3. 点击Cone a git repository
  4. 在URI框中输入repo url https://tfs.testqa.zionsbank.com/DevelopmentCollection/ZionsTools/git/zions-services-framework
  5. 主机和存储库路径自动填充
  6. 协议设置为https
  7. 输入“用户名和密码”,然后点击
  8. 再次提示输入用户名和密码 login screen
  9. error occured while trying to contact

    no password provided error

    https://tfs.testqa.zionsbank.com/DevelopmentCollection/ZionsTools/git/zions-services-framework:未经授权

    org.eclipse.jgit.api.errors.TransportException: https://tfs.testqa.zionsbank.com/DevelopmentCollection/ZionsTools/git/zions-services-framework: not authorized
        at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:223)
        at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:161)
        at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:114)
        at org.eclipse.egit.ui.internal.clone.SourceBranchPage$8.run(SourceBranchPage.java:335)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
    Caused by: org.eclipse.jgit.errors.TransportException: https://tfs.testqa.zionsbank.com/DevelopmentCollection/ZionsTools/git/zions-services-framework: not authorized
        at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:529)
        at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:345)
        at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:200)
        ... 4 more
    

1 个答案:

答案 0 :(得分:0)

无法重现此问题。

使用Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200测试Eclipse Oxygen(似乎在此版本中使用EGit 4.9 ),eveything按预期工作。

只需尝试以下项目即可缩小问题范围:

  • 尝试为您的帐户创建PAT并使用PAT进行身份验证 为Git克隆。
  • 同时尝试使用SSH,有关详细信息,请参阅Use SSH key authentication
  • 下载并安装最新的Eclipse Oxygen,然后再试一次。或者尝试使用最新的EGit替换EGit 4.6