Unable to auto detect email address git что это
git: фатальный, не удалось автоматически определить адрес электронной почты
Я просто не могу выполнить коммит с помощью git на Ubuntu 14.04
Сообщение об ошибке:
git: фатальный, не удалось автоматически определить адрес электронной почты (получил «неправильный адрес электронной почты»)
Чтобы быть уверенным Run:
Убедитесь, что вы находитесь в своем домашнем каталоге, а не в локальном. при установке вашего имени пользователя и идентификатора электронной почты.
Затем следуйте процедуре на GitHub.
фатальный: невозможно автоматически определить адрес электронной почты (получил ‘jsiddharth @ TheDEN. (none)’)
Я выполнил следующее,
Не работает, как в моем случае, вы можете использовать:
У меня вчера была эта проблема. Перед тем, как в моем решении, проверьте эти настройки.
Итак, подтвердите добавленную информацию, выполнив:
и проверьте эту информацию.
Я запускаю Ubuntu через подсистему Windows для Linux и правильно установил свои учетные данные через Git Bash, в том числе в терминале VS Code (где я получал ошибку каждый раз, когда пытался выполнить фиксацию).
По-видимому, даже несмотря на то, что VS использует Bash в терминале, элементы управления git пользовательского интерфейса все еще работают через Windows, где я не установил свои учетные данные.
Установка учетных данных в Windows Powershell устранила проблему
Я только что встретил тот же вопрос, моя проблема заключается в незнании пустого поля после «user.email» и «your_address_mail@domain.com».
Надеюсь, это вам поможет.
Шаги по решению этой проблемы
Примечание: эта проблема в основном возникает из-за того, что мы не назначили свое имя пользователя и идентификатор электронной почты в git, поэтому мы собираемся назначить его в git
Откройте git, который вы установили
Теперь нам нужно назначить наше имя пользователя и адрес электронной почты.
fatal: unable to auto-detect email address #246
Comments
rares-lupascu commented Feb 20, 2013
*** Please tell me who you are.
fatal: unable to auto-detect email address (got ‘me@me-PC.(none)’)
The text was updated successfully, but these errors were encountered:
DreamLifezjj commented Apr 11, 2013
Kinghero-ypx commented May 4, 2013
romal commented May 5, 2013
i am also have this same problems, Someone help
Cribstone commented Jul 2, 2013
Glad I’m not alone in having this issue. Not so glad there still appears to be no solution.
Cribstone commented Jul 2, 2013
and now I feel stupid. I just entered it into a command terminal and it automatically signed me in. Must’ve forgotten to do that on initial setup.
DreamLifezjj commented Jul 4, 2013
spaketti commented Nov 14, 2013
Sammy-iiitb commented Oct 31, 2015
Git is not able to recognize your email or user name probably
don’t change user with your name only change you with your email id.
shankarimoorthy commented Jan 16, 2016
thanks this is working
YohanesDoank commented Jan 30, 2016
thx sir Sammy its working
paaguti commented Mar 17, 2016
FreeBSD 10.1, tried remedy but it is not working for me
shifatbuet commented Sep 21, 2016
Akshay-NIIT commented Nov 10, 2016
victormolinaasencios commented Nov 18, 2016
aashutoshtaikar commented May 22, 2017
MazharIITK commented May 27, 2017
dmathisen commented Jul 3, 2017 •
I have user.name and user.email defined (and they match my github account), but I still get this error. Anyone have any idea why?
cjwijtmans commented Aug 28, 2017
this is frustrating it is supposed to be defined, i check both global and local repo but i still get this error.
jajhonrod1620 commented Jun 6, 2018
I got an alternate solution from here:
Basically it’s edit de config file in our git directory.
Local/repo/location/.git/
open «config» file there, and set your parameters like the example (add to the end of the file):
[user]
name = YOUR-NAME
email = YOUR-EMAIL-ADDRESS
pavansaikiran commented Dec 16, 2018
hmahajan99 commented Mar 19, 2019
I got an alternate solution from here:
Basically it’s edit de config file in our git directory.
Local/repo/location/.git/
open «config» file there, and set your parameters like the example (add to the end of the file):
[user]
name = YOUR-NAME
email = YOUR-EMAIL-ADDRESS
This worked for me!
MrEmperawr commented Jun 13, 2019
This worked for me! Thanks a bunch MazharIITK
rakesh415 commented Jan 21, 2020
jesusmariabermudez commented Mar 27, 2020
acabo de solucionar este mismo problema, investigando un poco logre solucionarlo..
se debe escribir los comando fuera de la carpeta donde hemos estado ejecutando los comando de git status o git add.. solo salimos a la carpeta local y ejecutamos y listo.
erix2016 commented Jun 11, 2020
Hice lo que dijiste, pero tampoco me resultó.
Margotte83 commented Aug 15, 2020 •
Joe294ME commented Sep 25, 2020
Al95-diallo commented Feb 4, 2021
Merci beaucoup. Cela a résolu mon problème.
Rierii commented Apr 5, 2021
I have user.name and user.email defined (and they match my github account), but I still get this error. Anyone have any idea why?
Bruuh. U sure a life safer. this one work for me, thanks
naveedum commented May 1, 2021
git: fatal unable to auto-detect email address
I just cannot commit with git on Ubuntu 14.04
Error message is:
git: fatal unable to auto-detect email address (got «some wrong email»)
16 Answers 16
Probably a typo mistake: set user.mail with no e. Fix it by setting user.email in the Global Configuration with
Make sure you should be in your home directory not in local directory. while setting your username and e-mail ID.
Then follow the procedure on GitHub.
Dont work like in my case, you can use:
fatal: unable to auto-detect email address (got ‘jsiddharth@TheDEN.(none)’)
I ran the following,
I had this problem yesterday. Before in the my solution, chek this settings.
Where «user» is the user of the laptop.
So, confirm the informations add, doing:
and check this informations.
Doing it and the error persists, try another Git IDE (GUI Clients). I used git-cola and this error appeared, so I changed of IDE, and currently I use the CollabNet GitEye. Try you also!
Git fails to auto-detect user.name and user.email after update to 1.52.0 #112294
Comments
michvllni commented Dec 11, 2020
Steps to Reproduce:
Note: This does not happen when committing directly through a shell (for example powershell or mingw64), so it has to be a problem with VS Code.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
vscodebot bot commented Dec 11, 2020
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
gchovanyecz commented Dec 11, 2020
jplackey commented Dec 11, 2020
eamodio commented Dec 11, 2020
michvllni commented Dec 13, 2020 •
As an alternative: Maybe give us the possibility to enable the auto-detection in the settings?
EDIT: Alternatively, maybe make it a warning instead of an error? At least that is what git does as well
mark-hahn commented Dec 13, 2020 •
EDIT: This is in wsl in windows.
mrwensveen commented Dec 14, 2020
A lot of users probably don’t use the git command line (a lot) and just use the interface VSCode and the Git extension give them. The Learn More button links to a git-scm page that may be confusing to them. It would be nice to be able to configure this from within vscode / the git extension.
Irimax commented Dec 15, 2020
Hello I have the same problem in addition I have several git accounts with a credentials because I use git for me and for the work thank you for fixing the problem even if I use the terminal it is still more practical with vscode
abby-d commented Dec 15, 2020 •
We’re having this issue at my work, too. We’ve all updated, but only one person is getting this error. We use Git and GitHub and VSC to version our help content, so we’re all technical writers, not developers—and we aren’t able to resolve this issue for a person on our team. More communication on this change and a more visual interface for updating this information would be really useful.
Edit: just kidding, we’re all experiencing the issue now.
CoreTechnologyAG commented Dec 16, 2020 •
this worked for me.
git config user.name «name»
git config user.email name@changeme.com
But it has to be entered in each project.
VS-Version:
Version: 1.52.0 (user setup) Commit: 940b5f4bb5fa47866a54529ed759d95d09ee80be Date: 2020-12-10T22:45:11.850Z Electron: 9.3.5 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.19042
GuilhermeAbacherli commented Dec 17, 2020
michvllni commented Dec 17, 2020
@CoreTechnologyAG @GuilhermeAbacherli
I know how to resolve it, the reason why I opened this issue is because i think it can be done better.
@eamodio could you take a Look at our suggestions?
They are as following:
Suggestion 1: Make an option in the settings to enable/disable auto-detect
Suggestion 2: Make it a Warning instead of an error (Like git does as well)
Suggestion 3: Give us the option to set user.name and user.email directly from VS Code (By @mrwensveen and @abby-d )
jobe451 commented Dec 23, 2020
I work on quite a few little personal never shared with others projects and I simply use a local git repository, not synced to anything remote.
So far setting up such a project was essentially a single click. Now I should every few weeks lookup somewhere the syntax to set name and mail by command line. If there were at least a quick dialog when creating the repo asking for name and mail that would be very helpful.
LorenzoColombi commented Jan 8, 2021
eamodio commented Jan 8, 2021
@michvllni I opened: #114049 to track that
vicchimenti commented Jan 11, 2021 •
I get this same error when setting up vscode on a new computer. When I check my git config everything looks good:
My github profile is also save in vs code yet I get this error:
*** Please tell me who you are.
fatal: no email was given and auto-detection is disabled
I was able to clone the the repo using git clone in the wsl terminal, but commiting via Source Control give me this Author identity unknow error
git username/email not found by gitit #307
Comments
maerten commented Jul 31, 2012
I get this error when starting gitit, and also when trying to create a front page:
Server error: UnknownError: Could not git commit Front Page.page
*** Please tell me who you are.
fatal: unable to auto-detect email address (got ‘xxxxxxxxx@xxxxxxx.(none)’)
My git username and email are present in
/.gitconfig.
OSX 10.7.4
GHC 7.4.2
cabal-install 0.14.0
The text was updated successfully, but these errors were encountered:
jgm commented Aug 7, 2012
Odd. If you use git in your repository, does it give the
correct user name and email in the log message?
What OS are you running?
+++ Maarten [Jul 31 12 16:24 ]:
I get this error when starting gitit, and also when trying to create a front page:
Server error: UnknownError: Could not git commit Front Page.page
*** Please tell me who you are.
fatal: unable to auto-detect email address (got ‘xxxxxxxxx@xxxxxxx.(none)’)
My git username and email are present in
Reply to this email directly or view it on GitHub:
#307
maerten commented Aug 8, 2012
I’m using:
OSX 10.7.4
GHC 7.4.2
cabal-install 0.14.0 (installed via homebrew)
git version 1.7.11.1 (homebrew)
This is what happens when i make the first commit in the wikidata repo:
$ git show
fatal: bad default revision ‘HEAD’
$ git show HEAD
fatal: ambiguous argument ‘HEAD’: unknown revision or path not in the working tree.
Use ‘—‘ to separate paths from revisions
$ git add Front\ Page.page
I don’t actually use gitit anymore on my mac, since it works fine on ubuntu. But i’m here to help if you have any questions about this problem!