Author of Android Studio Git Commit failed error solution'Kearne' is not'Name <email>'and matches no existing

Introduction

These days, when creating a new Android Studio project, you need to commit and push to github, but you can’t commit with an error. The error message is as follows

16:44	Commit failed with error
			0 files committed, 40 files failed to commit: 实现连接ranye服务器并publish topic
			--author 'Kearney' is not 'Name <email>' and matches no existing author

I'm so stupid, there is nothing wrong with the name that I committed dozens of times before. . . .
Then I also tried to enter the mailbox alone or user + mailbox. . The result is also a failure. . . . .

Solution

View git user information

View username

$ git config user.name

Check mailbox

$ git config user.email

For example, my information is Kearney and my email is [email protected],
then the format of the commit in AS when filling in Author is:

UserName<Mail>

commit && push

Note the angle brackets. . . I filled in parentheses before, no wonder
Insert picture description here
I want to post a picture after failing successfully

16:47	Pushed master to new branch origin/master

References

  • https://blog.csdn.net/xyc_csdn/article/details/72865266
  • https://blog.csdn.net/LVXIANGAN/article/details/108276443

Guess you like

Origin blog.csdn.net/weixin_43031092/article/details/108472209