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

Rename default branch "master" to "main" #10

Closed
ciozi137 opened this issue Apr 27, 2023 · 1 comment
Closed

Rename default branch "master" to "main" #10

ciozi137 opened this issue Apr 27, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ciozi137
Copy link
Member

@Monkeymerlot the default branch is now main https://github.com/github/renaming. Run the following commands to update your local repository:

git fetch
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
@ciozi137 ciozi137 added the enhancement New feature or request label Apr 27, 2023
@ciozi137 ciozi137 self-assigned this Apr 27, 2023
@ciozi137 ciozi137 changed the title Rename default branch Master to Main Rename default branch "master" to "main" Apr 27, 2023
@Monkeymerlot
Copy link
Collaborator

I did this but I had already updated the repository in github desktop so I just deleted the master branch after switching to main locally.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants