Closed savannahostrowski closed 2 years ago
Can you confirm that your default git branch is main?
possible duplicate from: https://github.com/Azure/azure-dev/issues/725
Running azd up
clones a template and removes the .git folder (so any branch info or remotes are lost)
Then, when running azd pipeline config
, git is initiated using default branch master
.
If you manually clone a template (git checkout template-url) and run azd pipeline config
, you will get an error when trying to push at the end because your origin
remote would be set to Azure-Samples url repo. So you need to create a different remote and use it as azd pipeline config --remote-name myRepo
Closing this in favor of
All of our templates use "main" as their default branch. When we create repos on behalf of users via
azd pipeline config
, we should use this same convention.