Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L lego
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Web
  • lego
  • Issues
  • #41
Closed
Open
Created Dec 08, 2021 by kezzle@kezOwner

Renaming master -> main

Today I'm renaming lego's default branch from master to main (context: team#5 (closed))

I'm not sure if gitlab or gitweb is the canonical source for lego, so I'll be renaming both. First I'll rename gitlab to get anarcat's nice script to edit any MRs and issues that reference master, then I'll rename gitweb to make sure both remotes are synced.

After the rename I'll be checking all the lego projects to make sure none of them explicitly reference the master branch, and I'll fix any that are.

After this rename you'll need to change the remote your local branch is tracking:

git branch master -u origin/main

And you can optionally rename your local branch:

git branch -m master main

After the rename, I'll leave this issue up for about a week to make sure people see it if they run into issues with the rename.

Assignee
Assign to
Time tracking