Open akd-io opened 1 year ago
I think
create-next-app
handles this case without problems, just ignoring git.
Doesn't seem to be the case according to this line in test.ts:
// If not done already, Set Git name and email so `git commit` doesn't fail during create-next-app
await setGitNameAndEmail()
Research and fix any problems that arise
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 foruser.name
andemail
before amendingcreate-next-app
with our initial commit.Get username with
git config --global user.name
Get email withgit config --global user.email
Set username withgit config --global user.name "example user name"
Set email withgit config --global user.email "example@user.email"