Skip to content

CLI crashes if git username and email isn't specified #231

Open
@akd-io

Description

@akd-io

I believe the CLI crashes if the user hasn't set their username and email in the git config, when the cli tries to create the initial commit.

I think create-next-app handles this case without problems, just ignoring git.
We should probably check for user.name and email before amending create-next-app with our initial commit.

Get username with git config --global user.name
Get email with git config --global user.email
Set username with git config --global user.name "example user name"
Set email with git config --global user.email "[email protected]"

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpackage: cliRelated to the "create-next-stack" cli package

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions