By default master branch is created, but now github uses main branch as default branch
See original GitHub issueDescribe the bug
create-react-app
sets master
as the default branch but Github has now changed the default branch to be main
. So now this package should create the branch name same as that of Github to keep consistency.
(Write your answer here.)
Did you try recovering your dependencies?
Not needed
6.14.8 (Write your answer here.)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
System: OS: Linux 5.8 Manjaro Linux CPU: (8) x64 Intel® Core™ i7-7700HQ CPU @ 2.80GHz Binaries: Node: 14.8.0 - ~/.nvm/versions/node/v14.8.0/bin/node Yarn: 1.22.5 - /usr/bin/yarn npm: 6.14.8 - ~/.nvm/versions/node/v14.8.0/bin/npm Browsers: Chrome: Not Found Firefox: Not Found npmPackages: react: ^16.13.1 => 16.13.1 react-dom: ^16.13.1 => 16.13.1 react-scripts: 3.4.3 => 3.4.3 npmGlobalPackages: create-react-app: 3.4.1
(paste the output of the command here.)
Steps to reproduce
(Write your steps here:)
- run
npx create-react-app test
- see the branch name
Expected behavior
Default branch name should be main
(Write what you thought would happen.)
Actual behavior
Defatul branch name is master
(Write what happened. Please add screenshots!)
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:12 (1 by maintainers)
Top GitHub Comments
I don’t think that Github’s decisions should set this library’s decisions. However, I agree that there’s a need to update the default branch name to main or at least be able to specify it with a flag.
BTW, If it’s considered a first good issue, I want to take it 😅
Opinions on whether defaulting to “master” is a violation of Facebook’s hate speech policy? Specifically “violent or dehumanizing speech, harmful stereotypes, statements of inferiority, expressions of contempt, disgust or dismissal, cursing, and calls for exclusion or segregation.”