Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename default branch to main #15219

Closed
dingmeng-xue opened this issue Jun 9, 2021 · 1 comment
Closed

Rename default branch to main #15219

dingmeng-xue opened this issue Jun 9, 2021 · 1 comment
Assignees

Comments

@dingmeng-xue
Copy link
Member

dingmeng-xue commented Jun 9, 2021

Many communities, both on GitHub and in the wider Git community, are considering renaming the default branch name of their repository from master. Azure PowerShell team plans to rename the default branch of repository https://github.com/Azure/azure-powershell and https://github.com/Azure/azure-powershell-pr to main on June 10

What will be done automatically during the renaming process.

  1. Existing PRs targeted master branch will be targeted main branch
  2. Branch protection rule will be migrated from master branch to main branch

What need to be done manually

  1. Update the name of the default branch of cloned the repository on your computer
git branch -m master main
git fetch origin 
git branch -u origin/main main
  1. New PRs should be created against main branch instead of master branch
  2. Rename default branch to main on your forked repo. https://docs.github.com/en/github/administering-a-repository/managing-branches-in-your-repository/renaming-a-branch#renaming-a-branch

Guidance from Github for your reference https://github.com/github/renaming

@dingmeng-xue dingmeng-xue added feature-request This issue requires a new behavior in the product in order be resolved. Engineering and removed feature-request This issue requires a new behavior in the product in order be resolved. labels Jun 9, 2021
@dingmeng-xue dingmeng-xue pinned this issue Jun 9, 2021
@dingmeng-xue dingmeng-xue added this to the S189 (2021-07-06) milestone Jun 9, 2021
@dolauli
Copy link
Contributor

dolauli commented Jun 11, 2021

PR -- #15238

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants