stack icon indicating copy to clipboard operation
stack copied to clipboard

[@nxpm/cli] running nxpm-stack init fails when no global git identity is configured

Open beeman opened this issue 3 years ago • 0 comments

Expected Behavior

Running nxpm-stack init should work if there are no global git identity.

Current Behavior

It fails because there is no global git identity

Error: Command failed: git checkout -B main && git add . && git commit -am "Initial commit of @nxpm/stack"
Switched to a new branch 'main'

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.
image

Possible Solution

The CLI should check if these values exist. If not, it should set them with anonymous defaults.

Steps to Reproduce (for bugs)

  1. nxpm sandbox base run
  2. npm install -g @nxpm/cli
  3. nxpm-stack init --name sandbox

beeman avatar Jan 25 '21 20:01 beeman