问题描述
在部署中心,我将部署源配置为“本地git”并保存。 git clone url 类似于 https://myapp.scm.azurewebsites.net:443/myapp.git
。
当我从本地 PC 的终端 git clone 这个 url 时,它会询问我的用户名和密码。我不认识他们。
我尝试了什么:
- 我的微软帐户
- 应用范围凭据
- 用户范围凭据
解决方法
用户范围和应用范围凭据都可以使用。在部署中心中,单击本地 Git/FTPS 凭据,然后复制用户名和密码(在本例中,我使用应用程序范围):
⚠ 注意: 对于 git 用户名,您只需使用名称的第二部分(在我的情况下为 $fredapi7458
而不是 {{ 1}}
进一步阅读:Configure deployment credentials for Azure App Service