Move from master to main #5558
Unanswered
hemish11
asked this question in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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 maingit push -u origin maingit symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/mainAfter 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 masterThanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions