Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #9748
Closed
Open
Issue created Oct 03, 2020 by Administrator@rootContributor

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:)

  1. run npx create-react-app test
  2. 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.)

Assignee
Assign to
Time tracking