使用git提交代码,报错如下:

下午2:56	Commit failed with error
0 files committed, 1 file failed to commit: 升级
empty ident name (for <>) not allowed

原因为git没有找到该项目对应的用户名和密码,执行如下操作

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

问题解决,正常提交并推送。  

 

设置全局默认配置:

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

  

 

相关文章:

  • 2021-10-19
  • 2022-01-22
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
  • 2021-08-19
猜你喜欢
  • 2021-06-03
  • 2021-06-13
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-02
相关资源
相似解决方案