Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
beeman opened this issue Jan 25, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@beeman
Copy link
Member

beeman commented Jan 25, 2021

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 beeman added the bug Something isn't working label Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant