今天使用idea修改git项目的作者信息,提交时遇到错误:

0 files committed, 1 file failed to commit: test --author 'java_suisui' is not 'Name  ' and matches no existing author

解决方案:需要在该项目的.git/config 文件中添加下面配置即可:

[user]
name = java_suisui
email = [email protected]
05-11 22:12