gpt4 book ai didi

python - git Push azure master azure fatal : Not a git repository (or any of the parent directories): . git

转载 作者:行者123 更新时间:2023-12-03 01:43:30 33 4
gpt4 key购买 nike

我是 azure 的新手。

我正在遵循 https://learn.microsoft.com/en-us/azure/app-service/app-service-web-get-started-python#configure-a-deployment-user 的入门说明.

到目前为止,我已经弥补了说明中的一些空白,例如不完整的命令(在 --runtime 中缺少 Bash <--%> “python|3.4” --deployment-local-git>)或 git init (在命令 git Remote add azure 之前需要)。

现在我陷入了推送到 Azure 远程以部署应用程序的步骤。命令<git push azure master>与当前的故障 PS Azure:\> git push azure master
fatal: Not a git repository (or any of the parent directories): .git

我检查了 git status:它显示还没有提交。有什么建议吗?

我信任 Azure 团队的流程,并且我会严格遵循该流程。我可以依赖任何更好的资源或更新的资源吗?

最佳答案

您正在 Azure Cloud Shell 中进行 git 操作,如 PS Azure:> 所示。

在您提供的链接中,您可以看到返回本地treminal 窗口的指导。 git tutorial

Git相关操作用于将本地应用部署到Azure,因此您必须在本地使用git bash来输入命令。

解决这个问题后,一切都应该正常。至于更好的资源,如果您指的是部署选项,您可以在链接的左侧栏中找到其他方法。

enter image description here

关于python - git Push azure master azure fatal : Not a git repository (or any of the parent directories): . git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50054412/

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