向 Eclipse Git 添加新存储库时找不到 git-upload-pack
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14497998/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
git-upload-pack not found while adding new repository to Eclipse Git
提问by Erel Segal-Halevi
I use Eclipse with GIT plugin. I try to add a new GitHub repository, by copying the GitHub URL to the clipboard, then going to the "Git Repositories" view and right-clicking "Paste Repository Path or URL".
我使用带有 GIT 插件的 Eclipse。我尝试添加一个新的 GitHub 存储库,方法是将 GitHub URL 复制到剪贴板,然后转到“Git 存储库”视图并右键单击“粘贴存储库路径或 URL”。
I get the following error:
我收到以下错误:
https://github.com/rothariel/aimnegochat: https://github.com/rothariel/aimnegochat/info/refs?service=git-upload-pack not found
https://github.com/rothariel/aimnegochat: https://github.com/rothariel/aimnegochat/info/refs?service=git-upload-pack not found
This is strange, because I already have some repositories in this view...
这很奇怪,因为我已经在这个视图中有一些存储库......
回答by ThanksForAllTheFish
From Erel's answer to my question in the comment section, it turned out the mistake was the copy of the wrong url. So, instead of copying the url provided by github, Erel copied the url in the navigation bar. The solution was to change the repository address to https://github.com/rothariel/aimnegochat.git
从 Erel 在评论部分对我的问题的回答来看,原来错误是复制了错误的 url。所以,Erel 没有复制 github 提供的 url,而是复制了导航栏中的 url。解决办法是将仓库地址改为https://github.com/rothariel/aimnegochat.git
回答by ciroBorrelli
For users of EGit/Eclipse who get the same error when clone from Visual Studio Online, be careful the repo URL is not: - https://[alt-name].visualstudio.com/DefaultCollection/[your_repo]
对于从 Visual Studio Online 克隆时遇到相同错误的 EGit/Eclipse 用户,请注意 repo URL 不是:- https://[alt-name].visualstudio.com/DefaultCollection/[your_repo]
the correct one is: - https://[alt-name].visualstudio.com/DefaultCollection/_git/[your_repo]
正确的一个是: - https://[alt-name].visualstudio.com/DefaultCollection/ _git/[your_repo]
回答by ylev
I had this message before service=git-upload-pack not found
我在 service=git-upload-pack not found 之前收到了这条消息
Seems the gitlab user & password I used for that git was wrong. I changed it to the right one and it worked just fine.
似乎我用于该 git 的 gitlab 用户和密码是错误的。我把它改成正确的,它工作得很好。
Yosi Lev
约西列夫