question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fatal: unable to auto-detect email address

See original GitHub issue

Versions

Angular CLI: 6.0.5 Node: 8.11.1 OS: linux x64

Repro steps

  • git config --global unset user.email
  • ng new mytestapp

Observed behavior

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

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

fatal: unable to auto-detect email address (

I consider that since there is a fatal error, the command has not ended successfully. Why a generation of a new project requires that I have a globally set user.email? I setup this per-project, not globally.

Desired behavior

Not to raise a fatal error, if git user.email has not been set globally.

Mention any other details that might be useful (optional)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Broccocommented, Jun 7, 2018

I am marking this as a feature, if you would like to create a project while controlling the git options, you can use the --skip-git option which will not create the repo.

0reactions
angular-automatic-lock-bot[bot]commented, Aug 1, 2022

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git: fatal unable to auto-detect email address - Stack Overflow
Open Visual Studio; Click on Git menu > Source Control > Git Repository Settings > General; Set the 'User name' and 'Email'; Click...
Read more >
fatal: unable to auto-detect email address #246 - GitHub
Run git config --global user.email "you@example.com"... ... fatal: unable to auto-detect email address (got 'me@me-PC.(none)').
Read more >
fatal unable to auto-detect email address got root xxxxx none
Hi Team, I am trying to commit one file to the Git server. But it is showing me the below ... to auto-detect...
Read more >
Message "unable to auto-detect email address" Is Displayed
The message unable to auto-detect email address is displayed after the git commit command is executed.The user name and email address have ...
Read more >
git: fatal unable to auto-detect email address - Intellipaat
Make sure that you are in the home directory and not in the local directory while setting your username and e-mail ID. git...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found