Repo 分支默认为 main 而不是 master

Repo branch is defaulting to main instead of master

我在 azure repos 中创建了一个新的存储库,分支名称默认为“main”..我的期望是..它应该是 master 请解释是否有人知道原因 谢谢

最近默认分支名称已从 master 更改为 main。请检查一下here - Azure Repos default branch name

What if I want to keep using master?

If you prefer not to change, you should enable this feature and set master as your preferred branch name. Then, when the default changes to main, your repositories will continue to use master.

但您可以在这里更改它: