Azureデプロイ時 git push origin main が失敗する場合 [Azure]
Azureアプリのgit pushが次のエラーで失敗する場合の対処。
>git push origin main
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 6 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 394 bytes | 394.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Deploy Async
remote: The current deployment branch is 'master', but nothing has been pushed to it
.....
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 6 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 394 bytes | 394.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Deploy Async
remote: The current deployment branch is 'master', but nothing has been pushed to it
.....
ブランチを明示的に指定する。
>git push origin main:master
参照
https://learn.microsoft.com/ja-jp/azure/app-service/deploy-local-git?tabs=cli#troubleshoot-deployment↓
https://learn.microsoft.com/ja-jp/azure/app-service/deploy-local-git?tabs=cli#change-deployment-branch
コメント 0