Skip to content

Rename git master to main

Tor is in the process of updating repositories to rename the default branch from master branch to main. This is a ticket to collect and track the work needed on this for the anti-censorship team. We've already started using main for new repositories. This ticket is to update existing ones. We have a lot of repositories, so this will be quite a task. Once we collect a full list, we'll make an announcement on the anti-censorship mailing list and weekly meeting.

We have several repositories that are maintained primarily by community members, and we will let these maintainers decide how to migrate branch names if they wish.

Migration Checklist:

  • Update project contributors and maintainers about the plan

  • Update any wiki pages that make references to branch names

  • We'll need to check that our gitweb <--> gitlab mirrors push the right branches

  • Do we have any scripts or documentation that rely on branch names?

  • Anything we need to for tor-browser? (tpo/applications/tor-browser-build#40280 (closed))

    Note: Snowflake is okay, but obfs4 and goptlib are set up to pull the master branch for builds

  • Will removing the master branch break existing Merge Requests?

  • Translations!! I think these are hooked up to master branches

Other efforts at Tor:

Edited by Cecylia Bocovich
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information