Git, используя username@computername.localdomain в качестве user.email в среде WSL 2 - PullRequest
0 голосов
/ 22 сентября 2019

Использование WSL 2 на компьютере с Windows 10 build 18985.1.

Я уже настроил user.name и user.email как обычно.

$ git config --global --list
user.name=João Antonio Santana
user.mail=joaosantana@outlook.com

При коммите, однако, Gitпоказывая это сообщение:

$ git commit -m "commit inicial"
[master (root-commit) 5f3fcd5] commit inicial
 Committer: João Antonio Santana <joaos@DESKTOP-DNPG26L.localdomain>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

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

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 curriculo.tex

git log показать эту запись электронной почты:

$ git log
commit 5f3fcd5f80ee0053636f706c0242f7f27f681aa5 (HEAD -> master)
Author: João Antonio Santana <joaos@DESKTOP-DNPG26L.localdomain>
Date:   Sun Sep 22 13:56:45 2019 -0300

    commit inicial

Почему Git игнорирует настройку .gitconfig для user.email и как от нее избавиться

...