By default master branch is created, but now github uses main branch as default branch
Created by: adrijshikhar
Describe 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(R) Core(TM) 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.)