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

[meta] Support neutral naming for EUI default branch #5322

Closed
2 tasks done
thompsongl opened this issue Oct 26, 2021 · 1 comment
Closed
2 tasks done

[meta] Support neutral naming for EUI default branch #5322

thompsongl opened this issue Oct 26, 2021 · 1 comment
Assignees
Labels

Comments

@thompsongl
Copy link
Contributor

thompsongl commented Oct 26, 2021

As part of a larger neutral naming effort at Elastic, we want to move from using master to main as the default branch name in GitHub. This involves:

Reference updates will be completed in a branch in advance, and will be merged immediately upon name change completion.

Renaming a branch will:

  • Re-target any open pull requests
  • Update any draft releases based on the branch
  • Move any branch protection rules that explicitly reference the old name
  • Update the branch used to build GitHub Pages, if applicable
  • Show a notice to repository contributors, maintainers, and admins on the repository homepage with instructions to update local copies of the repository
  • Show a notice to contributors who git push to the old branch
  • Redirect web requests for the old branch name to the new branch name
  • Return a "Moved Permanently" response in API requests for the old branch name

Anyone with a local clone of the repository will need to update their clone. The following commands assume a remote name of upstream for the Elastic organization's repository. If you use something different, be sure to replace the remote name in the following commands.

$ git branch -m master main
$ git fetch upstream
$ git branch -u upstream/main main
$ git remote set-head upstream -a
@thompsongl
Copy link
Contributor Author

thompsongl commented Nov 4, 2021

Rename complete. If any problems arise, they can be addressed in a dedicated issue.

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

No branches or pull requests

1 participant