How Can I Resolve:“can not open 'git-upload-pack' ” error in eclipse?

前端 未结 12 646
半阙折子戏
半阙折子戏 2020-12-25 13:00

I am building an android app with the facebook api and I need to import the facebook android sdk. When I want to import this file from github it throws the ..\"can not list

相关标签:
12条回答
  • 2020-12-25 13:21

    ......../info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?

    For me the issue was a password issue. I run Keychain and deleted Github passwords. I run the pull command after that and it asked me for username and password. After that it worked ok.

    0 讨论(0)
  • 2020-12-25 13:23

    You are using the wrong URL (you are using the URL for the html webpage). Try either of these instead:

    • https://github.com/facebook/facebook-android-sdk.git
    • git://github.com/facebook/facebook-android-sdk.git
    0 讨论(0)
  • 2020-12-25 13:23

    Adding the option insides Eclipse immediately resolves the issue. To add the option

    open preferences via application menu Window => Preferences (or on OSX Eclipse => Settings). Navigate to Team => Git => Configuration click Add entry..., then put http.sslVerify in the key box and false in the value box.

    0 讨论(0)
  • 2020-12-25 13:25

    I was getting the same issue "Cannot open git-upload-pack" in eclipse Juno while trying to clone ('Git Repository Exploring' perspective). https://[username]@[hostName]:[portNumber]/scm/TestRepo.git

    Solution : Issue got solved after adding "-Dhttps.protocols=TLSv1" to the eclipse.ini file.

    Possible Reason for Error : Some servers does not support TLSv1.2, or TLSv1.1, they might support only TLSv1.0. Java 8 default TLS protocol is 1.2 whereas it is 1.0 with Java 7. For an unknown reason, when Egit connects to the server, it does not fallback to TLSv1.1 after TLS1.2 fails to establish the connection. Don't know if it's an Egit or a Java 8 issue Courtesy : https://www.eclipse.org/forums/index.php/t/1065782/

    0 讨论(0)
  • 2020-12-25 13:34

    Just disable IPv6 on the network configuration

    Screenshot of my network configuration

    0 讨论(0)
  • 2020-12-25 13:35

    I had the same problem when my network config was incorrect and DNS was not resolving. In other words the issue could arise when there is no Network Access.

    0 讨论(0)
提交回复
热议问题