git:致命的无法自动检测电子邮件地址(“有一些错误电子邮件”) 我尝试使用和不使用 - 全局选项设置user.name和git-config user.mail但没有任何作品

2018-01-20   #1

致命:无法自动检测电子邮件地址(得到'jsiddharth @ TheDEN。(无)') 我跑了以下,

1

2

3

jsiddharth@TheDEN:~/workspace/androidsource$ git config --global user.email "myemailid@domain.com"

jsiddharth@TheDEN:~/workspace/androidsource$ git config --global user.name "my name"

jsiddharth@TheDEN:~/workspace/androidsource$ repo init -u https://<domainname>/platform/manifest

 

可能是一个错字错误:将user.mail设置为no * e *。通过设置修复它 全局配置中的user.email

1

$ git config --global user.email "you@example.com"

已经被问到:[为什么Git不允许我在之后提交 配置?](https://stackoverflow.com/questions/14662526 /为什么-混帐是,不可─ 让 - 我对提交偶数后配置) 确定运行:

1

$ git config --local -l

 

运行git stash时出现此错误。修正为:

1

2

git config --global user.email {emailaddress}

git config --global user.name {name}

 

我昨天有这个问题。在我的解决方案之前,che这个设置。

1

2

git config --global user.email "your_address_email@domain.com"

git config --global user.name "your_name"

其中“用户”是笔记本电脑的用户。例如:dias@dias-hp-pavilion$ git config --global dias.email ... 所以,确认信息添加,做:

1

2

3

4

dias@dias-hp-pavilion:/home/dias$ git config --global dias.email

my_address_email@domain.com

dias@dias-hp-pavilion:/home/dias$ git config --global dias.name

my_name

要么

1

nano /home/user_name/.gitconfig

并检查这些信息。 干它和错误仍然存​​在,请尝试另一个Git IDE(GUI客户端)。我用了 * git-cola *,并且出现这个错误,所以我改变了IDE,目前我正在使用 * CollabNet GitEye *。试试你也! 我希望有帮助!

 

2018-01-20   #5

确保你的主目录不在本地目录中。而 设置您的用户名和电子邮件ID。

1

2

git config --global user.email "you@domain.com"

git config --global user.name "github_username"

钍遵循GitHub上的程序。

 

2018-01-20   #6

我刚才遇到同样的问题,我的问题在于空白的无知 在“user.email”和“youraddressmail @ domain”后面.COM”。

1

git config --global user.email "your_address_email@domain.com"

我希望这会帮助你。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
在Linux中使用git send-email发送源代码和补丁需要先进行一些配置和设置。以下是一些可能出现问题的原因和解决方法: 1. 缺少sendmail或者类似的邮件发送软件 - 可以使用以下命令安装sendmail: ``` sudo apt-get install sendmail ``` 2. 没有配置邮件发送的SMTP服务器 - 可以使用以下命令设置SMTP服务器: ``` git config --global sendemail.smtpserver smtp.gmail.com git config --global sendemail.smtpserverport 587 git config --global sendemail.smtpencryption tls git config --global sendemail.smtpuser your_email@gmail.com git config --global sendemail.smtpserveraddress smtp.gmail.com git config --global sendemail.smtpserverport 587 git config --global sendemail.smtpencryption tls git config --global sendemail.smtpuser your_email@gmail.com git config --global sendemail.smtpserveraddress smtp.gmail.com git config --global sendemail.smtpserverport 587 git config --global sendemail.smtpencryption tls git config --global sendemail.smtpuser your_email@gmail.com ``` 3. 邮件发送被拒绝 - 有些邮件服务提供商可能会拒绝来自未知应用程序的邮件发送请求。此时可以尝试启用SMTP验证和应用程序密码,或者使用另一个邮件服务提供商。 4. 文件太大 - 如果要发送的文件太大,可能会被邮件服务器拒绝。可以尝试使用压缩文件或者分割文件。 总之,使用git send-email发送邮件需要对邮件服务器和git进行一些配置和设置。如果遇到问题,可以仔细查看错误提示并尝试解决。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值