gitlab提交记录中authored显示为unknow怎么办?
最近上传测试代码到gitlab远程仓库时,发现提交记录里显示作者名称为unknown,git log -l 检查配置发现配置中无user.name和user.email配置,无该配置时本地 commit时的作者名称是unknow,所以提交到gitlab上也是unknow。解决方法:$ git config --global user.name “your name”$ git config --global user.email “your email@email.com”配置后git log
原创
2020-08-15 17:27:09 ·
3519 阅读 ·
0 评论