Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upChange default branch for create-next-app output to be `main` #17733
Comments
|
Sounds great, feel free to send a PR to change this! We currently use |
|
@timneutkens Can I work on this one? I'm assuming, this is where I set it to main: |
|
Have created a PR: #17745 |
sidthesloth92
linked a pull request that will
close
this issue
Looks like
Sounds like we need to create a new branch then delete the old one if it wasn't |
|
@timneutkens Yes, git init does not support that.. All we have to do is,
In the end, we will have only one branch. Checkout my PR: https://github.com/vercel/next.js/pull/17745/files |


Feature request
Is your feature request related to a problem? Please describe.
Currently, the generated codebase from
npx create-next-app xyields a project namedxwith git initialized withmasteras the default branch. To match up with GitHub, it should bemain.