question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change default branch for create-next-app output to be `main`

See original GitHub issue

Feature 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mlvzkcommented, Jan 13, 2021

Why? What does Github’s choice have to do with Git? Just use git’s defaults…

0reactions
balazsorban44commented, Jan 28, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found