Renaming the default branch of Rust-lang/rust
3 days ago
- #Rust
- #Repository Management
- #GitHub
- The default branch of rust-lang/rust repository will be renamed from 'master' to 'main' on 2025-11-10.
- The name 'main' was chosen because it is the default for newly-created GitHub repositories and leverages GitHub's built-in tooling for renaming.
- Tools assuming the default branch is 'master' should use 'HEAD' instead to ensure compatibility before and after the rename.
- After the rename, contributors need to run specific commands in their local repository checkout if their remote is named 'origin'.
- Fork owners of rust-lang/rust can rename their default branch to 'main' by following GitHub's instructions.