php 致命:无法从重定向更新 url 库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/43910868/
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
fatal: unable to update url base from redirection
提问by Balaji R
$ git remote set-url origin https://[email protected]/home/demodev/public_html/waqtpar.git`
$ git push -u origin master`
fatal: unable to update url base from redirection: asked for: https://[email protected]:/home/demodev/public_html/waqtpar.git/info/refs?service=git-receive-packredirect: https://[email protected]:/404.html`
致命:无法从重定向更新 url 基础:要求:https://[email protected]:/home/demodev/public_html/waqtpar.git/info/refs?service=git-receive-pack重定向:https:/ /[email protected]:/404.html`
回答by Vampire
Well, as the error says. You are getting a 404 error page which means website is not found. Git of course cannot handle this redirect in this case and so complains.
好吧,正如错误所说。您收到 404 错误页面,这意味着未找到网站。在这种情况下,Git 当然无法处理这种重定向,因此会抱怨。
Your URL is simply wrong. Did you maybe want to use
您的网址完全错误。你可能想用
ssh://[email protected]/home/demodev/public_html/waqtpar.git
ssh://[email protected]/home/demodev/public_html/waqtpar.git
or
或者
[email protected]:/home/demodev/public_html/waqtpar.git
[email protected]:/home/demodev/public_html/waqtpar.git
or
或者
回答by sanbrother
I just met this problem. I fixed this by disabling proxy (I'm using TortoiseGit)
我刚遇到这个问题。我通过禁用代理解决了这个问题(我正在使用 TortoiseGit)
回答by Kanav
Steps followed for cloning in command line:
在命令行中克隆的步骤如下:
>mkdir <folder name>
>git init
>git clone http[s]://host.xz[:port]/path/to/repo.git/
or
或者
>git clone ssh://[user@]host.xz[:port]/path/to/repo.git/