gpt4 book ai didi

git - 无法再 git Push 到 Azure

转载 作者:行者123 更新时间:2023-12-03 00:33:56 25 4
gpt4 key购买 nike

昨天工作正常,但今天当我向 Azure 中的网站执行 git push azure master 时,输入密码后我得到了这个

error: Failed connect to yy.scm.azurewebsites.net:443;
Operation timed out while accessing
https://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d0a8a890a9a9fea3b3bdfeb1aaa5a2b5a7b5b2a3b9a4b5a3febeb5a4" rel="noreferrer noopener nofollow">[email protected]</a>/yy.git/info/refs?service=git-receive-pack
fatal: HTTP request failed

还有人遇到这个问题吗?

谢谢!

最佳答案

您可以尝试关注those advices ,包括:

确保网站本身正常运行

When you run into a git issue, the first thing to try is to hit the site itself (e.g. http://somesite.azurewebsites.net/).
If you get some kind of error instead of the default "The web site is under construction" page, then Azure Web Sites are likely down, and nothing related to git will work.

尝试访问 git 服务的根目录

If the main site is up but git is broken in some way, try hitting the root of the Kudu service directly from the browser. This is useful whether you fail to Enable Git, get a failure on the Deployment tab, or get a failure when you git push.

e.g. if your site URL is http://somesite.azurewebsites.net/, the kudu service root URL will be https://somesite.scm.azurewebsites.net/.
So use https, and add the scm token. You will be prompted for credentials, which are the same as what you use to 'git push'.

如果您在提示输入凭据之前收到错误

That usually means something pretty bad is wrong, causing things to fail before it even reaches the git engine.

如果在提示输入凭据后出现错误

That could mean two different things:

  • An issue with Azure Web Sites
  • An issue with the git support itself

Record what the error is and report it to the forum

关于git - 无法再 git Push 到 Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14377952/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com