stack
stack copied to clipboard
[@nxpm/cli] running nxpm-stack init fails when no global git identity is configured
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](https://user-images.githubusercontent.com/36491/105763333-aadc7200-5f23-11eb-8e63-bb20fa7dce37.png)
Possible Solution
The CLI should check if these values exist. If not, it should set them with anonymous defaults.
Steps to Reproduce (for bugs)
- nxpm sandbox base run
- npm install -g @nxpm/cli
- nxpm-stack init --name sandbox