【问题标题】:git push azure master azure fatal: Not a git repository (or any of the parent directories): .gitgit push azure master azure fatal:不是 git 存储库(或任何父目录):.git
【发布时间】:2018-04-27 02:37:41
【问题描述】:

我是天蓝色的新手。

我正在遵循https://docs.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 状态:它显示还没有提交。 有什么建议吗?

我相信 Azure 团队的程序,并且我会一直坚持下去。我可以依赖任何更好的资源或更新的资源吗?

【问题讨论】:

  • 在寻求帮助之前,您需要改进您的问题。提供minimal reproducible example 并改进语法,使其易于理解。
  • @JCN 如果我的解决方案有帮助,您可以接受它作为答案,或者如果您还有其他问题,请提出。
  • @JL:感谢您的帮助。我该如何接受?现在问题解决了!我不确定根本原因。当我遇到致命错误时,我只是从离开的地方恢复。
  • @JCN 在我的回答左边,你可以看到一个灰色的√,点一下就可以了。谢谢。

标签: python azure azure-web-app-service web-deployment


【解决方案1】:

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

在您提供的链接中,您可以看到指导Back in the local treminal window

Git相关操作用于将本地应用程序部署到Azure,所以你必须在本地使用git bash来输入你的命令。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-23
    • 1970-01-01
    • 2012-08-11
    • 1970-01-01
    • 2021-12-12
    相关资源
    最近更新 更多