Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default branch has been renamed to main #48357

Closed
ViktorHofer opened this issue Feb 16, 2021 · 5 comments
Closed

Default branch has been renamed to main #48357

ViktorHofer opened this issue Feb 16, 2021 · 5 comments
Assignees
Milestone

Comments

@ViktorHofer
Copy link
Member

ViktorHofer commented Feb 16, 2021

Part of March's batched infrastructure rollout: #48168

On March 1st 2021 (Monday) we're going to rename the default branch in this repository to main. For more details, see our earlier announcement. Expect the process to begin around 8AM UTC.

@ViktorHofer ViktorHofer added this to the 6.0.0 milestone Feb 16, 2021
@ViktorHofer ViktorHofer self-assigned this Feb 16, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Feb 16, 2021
@ViktorHofer ViktorHofer pinned this issue Feb 16, 2021
@ghost
Copy link

ghost commented Feb 16, 2021

Tagging subscribers to this area: @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

On March 1st 2021 (Monday) we're going to rename the default branch in this repository to main. For more details, see our earlier announcement. Expect the process to begin around 8AM UTC.

Author: ViktorHofer
Assignees: ViktorHofer
Labels:

area-Infrastructure

Milestone: 6.0.0

@ViktorHofer ViktorHofer removed the untriaged New issue has not been triaged by the area owner label Feb 16, 2021
@ViktorHofer ViktorHofer changed the title Infrastructure Rollout - Default branch will be renamed to main Default branch will be renamed to main Feb 16, 2021
@ViktorHofer ViktorHofer changed the title Default branch will be renamed to main Default branch has been renamed to main Mar 1, 2021
@ViktorHofer
Copy link
Member Author

ViktorHofer commented Mar 1, 2021

Work is done. Will leave this issue open to make the change very visible. See also the following on the repo home page

image

@Nirmal4G
Copy link

Nirmal4G commented Mar 2, 2021

Alternative solution #49017 without changing your local setup; that is, if you have a more complicated setup (like mine)

@ViktorHofer
Copy link
Member Author

Inlined content from #49017 into this discussion.

@Nirmal4G wrote:

For all those who can't pull master, it has renamed to main.
To preserve refspec to patches and branches, just changing the heads/master to heads/main should work.

[remote "origin"]
	url = https://github.com/dotnet/runtime
-	fetch = +refs/heads/master:refs/remotes/origin/master
+	fetch = +refs/heads/main:refs/remotes/origin/master
	tagopt = --no-tags
[branch "master"]
	remote = origin
-	merge = refs/heads/master
+	merge = refs/heads/main

Putting this out there, if anyone else facing similar issue with git.

@ViktorHofer
Copy link
Member Author

ViktorHofer commented Mar 10, 2021

Closing as most people should now be aware of the default branch rename.

@ViktorHofer ViktorHofer unpinned this issue Mar 10, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants