Thursday, February 20, 2020

how to fix commit issue "fatal: unable to auto-detect email address (got 'danny@cc-fe053af4-868f6d6c9-brgtr.(none)')" against the Github?

i have a simple action to make a commit against Github

git init -- to initialize the local repository

git add .  --to check in the change in the local

git commit -m "my comment"

then i got an error


*** 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 (got 'danny@cc-fe053af4-868f6d6c9-brgtr.(none)')


the easy and straightforward solution is manually add user section in the config file in .git folder.


[user]
name=github username
email=email for github login







No comments:

Post a Comment