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

Move default branch from master to main #7

Closed
hemish11 opened this issue Dec 14, 2020 · 3 comments
Closed

Move default branch from master to main #7

hemish11 opened this issue Dec 14, 2020 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@hemish11
Copy link

Recently, Github has changed the master branch to main, so we should also take this step and change the branch of a flutter from master to main.

Here are all the commands that need to run to make a clone of this branch with a different name:
git branch -m master main
git push -u origin main
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main

After all this, we need to change the default branch from the settings of the repo.

And finally, run this command to delete the master branch
git push origin --delete master

Thanks a lot.

@md-weber
Copy link
Owner

Great idea, I will do that. Sorry that I only react now somehow I did not get a notification.

@hemish11
Copy link
Author

No problem, sometimes, I also don't get notifications from Github. So, do I close this issue?

@md-weber
Copy link
Owner

I just renamed the default branch. I guess that should do the trick 👍 - I close this PR now.

@md-weber md-weber added the documentation Improvements or additions to documentation label Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants