Skip to content

Commit b977cb2

Browse files
authored
Merge pull request #1724 from rust-lang/TC/fix-claim-about-git-defaults
Fix claim about Git's default branch name
2 parents 74c59b4 + b78d9aa commit b977cb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/inside-rust/renaming-the-default-branch-of-rust-lang-rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ team = "the Infra team"
88
team_url = "https://www.rust-lang.org/governance/teams/infra#team-infra"
99
+++
1010

11-
We will be renaming the default branch of the [rust-lang/rust repository](https://github.com/rust-lang/rust) from `master` to `main` on 2025-11-10. We've chosen `main` specifically as it's the [new default in git][git-change] and the renaming will leverage the [GitHub tooling][github-tooling] built to make this easier.
11+
We will be renaming the default branch of the [rust-lang/rust repository](https://github.com/rust-lang/rust) from `master` to `main` on 2025-11-10. We've chosen `main` specifically as it's the default for newly-created repositories [in GitHub][github-change] and the renaming will leverage the [GitHub tooling][github-tooling] built to make this easier.
1212

1313
If you maintain a tool that currently assumes the default branch of `rust-lang/rust` is named `master`, using `HEAD` instead will work both before and after the rename.
1414

@@ -26,7 +26,7 @@ git remote prune origin
2626

2727
If you have a fork of the `rust-lang/rust` repository on GitHub and would like to rename your default branch to match, you can follow [GitHub's instructions][github-how-to-rename].
2828

29-
[git-change]: https://lore.kernel.org/git/[email protected]/
29+
[github-change]: https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main/
3030

3131
[github-tooling]: https://github.com/github/renaming
3232

0 commit comments

Comments
 (0)