Change default branch for create-next-app output to be `main`
See original GitHub issueFeature request
Is your feature request related to a problem? Please describe.
Currently, the generated codebase from npx create-next-app x
yields a project named x
with git initialized with master
as the default branch. To match up with GitHub, it should be main
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (6 by maintainers)
Top Results From Across the Web
5 steps to change GitHub default branch from master to main
Step 1 - Move the master branch to 'main' · Step 2 - Push 'main' to remote repo · Step 3 - Point...
Read more >How to change git default branch from master - Level Up Coding
In Github, go to settings -> branches. You can change the default branch there. That's it you are done. But remember ...
Read more >Create Next App | Next.js
This CLI tool enables you to quickly start building a new Next.js application, with everything set up for you. You can create a...
Read more >git how to change default branch for everything I do?
Following the FAQ article "How to Rename the master branch to main in Git", and the GitHub documentation itself, you can:.
Read more >How to change a GitHub repo from master to main
I want to change all my GitHub repo's default branch from master ... git branch -a command again and you should see output...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why? What does Github’s choice have to do with Git? Just use git’s defaults…
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.