Skip to content

Instantly share code, notes, and snippets.

@djmitche
Last active August 7, 2020 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djmitche/aed8d9dd57d2af28665022faf4294aa2 to your computer and use it in GitHub Desktop.
Save djmitche/aed8d9dd57d2af28665022faf4294aa2 to your computer and use it in GitHub Desktop.
  • pull master and push to main
  • update the default branch in GitHub settings (under "branches")
  • copy the branch protection settings (manually) from master to main
  • update automation to look at main instead of master and make a PR
    • also fix any links -- look for github.com/taskcluster/$REPO/
  • change community-tc-config if necessary
  • delete branch protection for master, push a new history-free commit there with a README (something like https://github.com/taskcluster/taskcluster/commit/5d2ef402861dee513bdf94c704dcbf6bad12bce3)
  • re-enable branch protection for master, require linear commits, and include administrators
  • for any open PRs, click "edit" and change the base branch to main

pushing a history-free commit (do this after pushing the existing latest commit to main!):

mkdir tmp
cd tmp
git init
vi README.md
git add README.md
git commit -am "moved to main"
git push -f git@github.com:taskcluster/$REPO master:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment