git commit–fatal: unable to auto-detect email address

Error in Git commit

*** 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.

fatal: unable to auto-detect email address (got 'void@void-ThinkPad-E450.(none)')

Find the. Git folder of the project directory, open it, find the config file, and add the sentence
[user]
email = your email
name = your name at the end

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url = https://github.com/VoidSem/user_rootfs_misc
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
[user]
email=your@email
name=yourname 

Then submit again

Similar Posts: